✨ 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,
|
kind_icons = icons.kind,
|
||||||
},
|
},
|
||||||
sources = {
|
sources = {
|
||||||
default = { 'avante', 'lazydev', 'lsp', 'path', 'snippets', 'buffer', 'copilot' },
|
default = { 'avante', 'lazydev', 'lsp', 'path', 'snippets', 'buffer', 'copilot', 'spell' },
|
||||||
providers = {
|
providers = {
|
||||||
avante = {
|
avante = {
|
||||||
module = 'blink-cmp-avante',
|
module = 'blink-cmp-avante',
|
||||||
@@ -58,6 +58,20 @@ blink.setup({
|
|||||||
-- make lazydev completions top priority (see `:h blink.cmp`)
|
-- make lazydev completions top priority (see `:h blink.cmp`)
|
||||||
score_offset = 100,
|
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',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
@@ -137,6 +137,7 @@ local plugins = {
|
|||||||
'rafamadriz/friendly-snippets',
|
'rafamadriz/friendly-snippets',
|
||||||
'Kaiser-Yang/blink-cmp-avante',
|
'Kaiser-Yang/blink-cmp-avante',
|
||||||
'windwp/nvim-ts-autotag',
|
'windwp/nvim-ts-autotag',
|
||||||
|
'f3fora/cmp-spell',
|
||||||
{
|
{
|
||||||
'L3MON4D3/LuaSnip',
|
'L3MON4D3/LuaSnip',
|
||||||
config = function()
|
config = function()
|
||||||
|
|||||||
@@ -9,9 +9,9 @@ files.setup({
|
|||||||
mappings = {
|
mappings = {
|
||||||
close = 'q',
|
close = 'q',
|
||||||
go_in = '<CR>',
|
go_in = '<CR>',
|
||||||
go_in_plus = 'L',
|
go_in_plus = 'l',
|
||||||
go_out = '-',
|
go_out = '-',
|
||||||
go_out_plus = 'H',
|
go_out_plus = 'h',
|
||||||
reveal_cwd = '@',
|
reveal_cwd = '@',
|
||||||
trim_left = '<',
|
trim_left = '<',
|
||||||
trim_right = '>',
|
trim_right = '>',
|
||||||
|
|||||||
Reference in new issue
Block a user