Install nvim-cmp source for spelling

This commit is contained in:
2021-11-28 21:26:52 +03:00
parent a06a597051
commit 6a8923ac07
2 changed files with 7 additions and 3 deletions

View File

@@ -54,7 +54,7 @@ cmp.setup({
},
sources = cmp.config.sources({
{name = "nvim_lsp", trigger_characters = {"."}}, {name = "luasnip"},
{name = "nvim_lua"}
{name = "nvim_lua"}, {name = "spell"}
}, {{name = "path"}, {name = "buffer"}}),
completion = {completeopt = "menu,menuone,noselect,noinsert,preview"},
experimental = {ghost_text = true},
@@ -78,7 +78,8 @@ cmp.setup({
nvim_lsp = "[LSP]",
luasnip = "[Snippet]",
nvim_lua = "[Lua]",
path = "[File]"
path = "[File]",
spell = "[Spell]"
})[entry.source.name]
return vim_item
end