mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
nvim/cmp: precedence
This commit is contained in:
parent
f901002774
commit
5d4e1547c5
1 changed files with 8 additions and 13 deletions
|
|
@ -29,18 +29,13 @@ cmp.setup {
|
||||||
expand = function(args) luasnip.lsp_expand(args.body) end,
|
expand = function(args) luasnip.lsp_expand(args.body) end,
|
||||||
},
|
},
|
||||||
mapping = cmp.mapping.preset.insert(),
|
mapping = cmp.mapping.preset.insert(),
|
||||||
-- TODO: how can I make some take precedence of others?
|
sources = cmp.config.sources({
|
||||||
sources = {
|
{ name = "luasnip" },
|
||||||
{ name = "luasnip" },
|
{ name = "nvim_lsp" },
|
||||||
{ name = "nvim_lsp" },
|
{ name = "path" },
|
||||||
{ name = "path" },
|
|
||||||
{ name = "buffer" },
|
|
||||||
{
|
|
||||||
name = "spell",
|
|
||||||
keyword_length = 10, -- PERF:
|
|
||||||
option = {
|
|
||||||
keep_all_entries = true,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
{
|
||||||
|
{ name = "buffer" },
|
||||||
|
{ name = "spell", },
|
||||||
|
}),
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue