✨ feat(cmp): add cmp-spell for spell checking suggestions
This commit is contained in:
3 files changed
+18
-3
No files matched your search
@@ -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',
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
Reference in new issue
Block a user