Improved neovim config

This commit is contained in:
2023-08-21 00:09:00 +02:00
parent d07a82fff2
commit 2ad93d9338
15 changed files with 140 additions and 53 deletions

View File

@ -0,0 +1,24 @@
return {
"hrsh7th/nvim-cmp",
event = "InsertEnter",
dependencies = {
"hrsh7th/cmp-nvim-lsp",
"hrsh7th/cmp-buffer",
"hrsh7th/cmp-path",
},
config = function()
local cmp = require("cmp")
cmp.setup({
mapping = {
["<C-space>"] = cmp.mapping.complete(),
["<cr>"] = cmp.mapping.confirm({ select = true }),
},
sources = {
{ name = "nvim_lsp" },
{ name = "buffer" },
{ name = "path" },
},
})
end,
}