Updated config
This commit is contained in:
@ -55,6 +55,7 @@ return {
|
||||
|
||||
local opts = {
|
||||
completion = {
|
||||
-- autocomplete = false,
|
||||
completeopt = "menu,menuone,noinsert",
|
||||
},
|
||||
formatting = {
|
||||
@ -69,7 +70,7 @@ return {
|
||||
["<C-space>"] = cmp.mapping.complete(),
|
||||
["<C-up>"] = cmp.mapping.select_prev_item(),
|
||||
["<C-down>"] = cmp.mapping.select_next_item(),
|
||||
["<C-e>"] = cmp.mapping.abort(),
|
||||
["<C-x>"] = cmp.mapping.abort(),
|
||||
["<cr>"] = cmp.mapping.confirm({ select = true }),
|
||||
},
|
||||
-- snippet = {
|
||||
@ -77,16 +78,17 @@ return {
|
||||
-- require("luasnip").lsp_expand(args.body)
|
||||
-- end,
|
||||
-- },
|
||||
-- preselect = cmp.PreselectMode.None,
|
||||
sources = {
|
||||
{ name = "nvim_lsp" },
|
||||
{ name = "luasnip" },
|
||||
{ name = "buffer" },
|
||||
{ name = "path" },
|
||||
-- { name = "luasnip" },
|
||||
-- { name = "buffer" },
|
||||
-- { name = "path" },
|
||||
},
|
||||
window = {
|
||||
completion = {
|
||||
border = "rounded",
|
||||
scrollbar = false
|
||||
scrollbar = false,
|
||||
},
|
||||
documentation = {
|
||||
border = "rounded",
|
||||
|
Reference in New Issue
Block a user