Updated config

This commit is contained in:
2023-10-20 15:55:21 +02:00
parent 57486c10d7
commit ab6b2b1850
15 changed files with 63 additions and 79 deletions

View File

@ -46,9 +46,9 @@ return {
event = "InsertEnter",
dependencies = {
"hrsh7th/cmp-nvim-lsp",
"hrsh7th/cmp-buffer",
"hrsh7th/cmp-path",
"L3MON4D3/LuaSnip",
-- "hrsh7th/cmp-buffer",
-- "hrsh7th/cmp-path",
-- "L3MON4D3/LuaSnip",
},
config = function()
local cmp = require("cmp")
@ -72,11 +72,11 @@ return {
["<C-e>"] = cmp.mapping.abort(),
["<cr>"] = cmp.mapping.confirm({ select = true }),
},
snippet = {
expand = function(args)
require("luasnip").lsp_expand(args.body)
end,
},
-- snippet = {
-- expand = function(args)
-- require("luasnip").lsp_expand(args.body)
-- end,
-- },
sources = {
{ name = "nvim_lsp" },
{ name = "luasnip" },