Updated config

This commit is contained in:
2024-01-21 17:14:47 +01:00
parent ab6b2b1850
commit 4e74495124
10 changed files with 91 additions and 81 deletions

View File

@ -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",