nvim: cmp tweaks
This commit is contained in:
parent
712769d7cd
commit
9d6880a733
1 changed files with 44 additions and 41 deletions
|
@ -29,13 +29,16 @@ return {
|
||||||
["<C-d>"] = cmp.mapping.scroll_docs(-2),
|
["<C-d>"] = cmp.mapping.scroll_docs(-2),
|
||||||
["<C-u>"] = cmp.mapping.scroll_docs(2),
|
["<C-u>"] = cmp.mapping.scroll_docs(2),
|
||||||
["<C-e>"] = cmp.mapping.abort(),
|
["<C-e>"] = cmp.mapping.abort(),
|
||||||
["<CR>"] = cmp.mapping.confirm({ select = true }),
|
["<CR>"] = cmp.mapping.confirm({ select = false }),
|
||||||
|
["<Tab>"] = cmp.mapping.confirm({ select = true }),
|
||||||
["<C-Space>"] = cmp.mapping.complete(),
|
["<C-Space>"] = cmp.mapping.complete(),
|
||||||
}),
|
}),
|
||||||
|
|
||||||
|
|
||||||
sources = cmp.config.sources({
|
sources = cmp.config.sources({
|
||||||
{ name = "nvim_lsp" },
|
{ name = "nvim_lsp", priority = 3 },
|
||||||
{ name = "nvim_lsp_signature_help" },
|
{ name = "nvim_lsp_signature_help", priority = 10 },
|
||||||
{ name = "buffer" },
|
{ name = "buffer", keyword_length = 3 },
|
||||||
{ name = "copilot" },
|
{ name = "copilot" },
|
||||||
{ name = "emoji" },
|
{ name = "emoji" },
|
||||||
}),
|
}),
|
||||||
|
|
Loading…
Add table
Reference in a new issue