✨ feat(cmp): add cmp-spell for spell checking suggestions

This commit is contained in:
sankalp committed 2025-07-25 13:39:03 +05:45
1 parent a73b7d1d36
commit 1cc51f2774
3 files changed
+18 -3

No files matched your search

+15 -1
View File
@@ -30,7 +30,7 @@ blink.setup({
kind_icons = icons.kind,
},
sources = {
default = { 'avante', 'lazydev', 'lsp', 'path', 'snippets', 'buffer', 'copilot' },
default = { 'avante', 'lazydev', 'lsp', 'path', 'snippets', 'buffer', 'copilot', 'spell' },
providers = {
avante = {
module = 'blink-cmp-avante',
@@ -58,6 +58,20 @@ blink.setup({
-- make lazydev completions top priority (see `:h blink.cmp`)
score_offset = 100,
},
spell = {
name = 'spell',
module = 'blink.compat.source',
max_items = 10,
score_offset = -20,
opts = {
keep_all_entries = true, -- don't filter it
-- enable_in_context = function()
-- return require("cmp.config.context").in_treesitter_capture "spell"
-- end,
preselect_correct_word = false,
},
kind = 'Spell',
},
},
},
})
+1
View File
@@ -137,6 +137,7 @@ local plugins = {
'rafamadriz/friendly-snippets',
'Kaiser-Yang/blink-cmp-avante',
'windwp/nvim-ts-autotag',
'f3fora/cmp-spell',
{
'L3MON4D3/LuaSnip',
config = function()
+2 -2
View File
@@ -9,9 +9,9 @@ files.setup({
mappings = {
close = 'q',
go_in = '<CR>',
go_in_plus = 'L',
go_in_plus = 'l',
go_out = '-',
go_out_plus = 'H',
go_out_plus = 'h',
reveal_cwd = '@',
trim_left = '<',
trim_right = '>',