update

Changed files
+17 -1
home
+10
home/nvim/default.nix
···
cmp-cmdline
cmp-spell
{
plugin = luasnip;
type = "lua";
config = builtins.readFile ./luasnip.lua;
···
cmp-cmdline
cmp-spell
{
+
plugin = cmp-dictionary;
+
type = "lua";
+
config = ''
+
require("cmp_dictionary").setup({
+
paths = { os.getenv("WORDLIST") },
+
exact_length = 2,
+
})
+
'';
+
}
+
{
plugin = luasnip;
type = "lua";
config = builtins.readFile ./luasnip.lua;
+7 -1
home/nvim/nvim-cmp.lua
···
nvim_lsp = '[LSP]',
nvim_lsp_signature_help = '[Signature]',
spell = '[Spell]',
buffer = '[Buffer]',
path = '[Path]',
ls = '[Luasnip]',
···
{ name = 'buffer', priority = 600 },
{ name = 'path', priority = 500 },
{
name = 'spell',
-
priority = 400,
option = { preselect_correct_word = false }
},
}),
···
nvim_lsp = '[LSP]',
nvim_lsp_signature_help = '[Signature]',
spell = '[Spell]',
+
dictionary = '[Dictionaryy]',
buffer = '[Buffer]',
path = '[Path]',
ls = '[Luasnip]',
···
{ name = 'buffer', priority = 600 },
{ name = 'path', priority = 500 },
{
+
name = 'dictionary',
+
priority = 400,
+
keyword_length = 2,
+
},
+
{
name = 'spell',
+
priority = 300,
option = { preselect_correct_word = false }
},
}),