[VERSION BUMP] Lazy vim: 14.11.0 nvim: 0.10.4

This commit is contained in:
Daveanand Mannie
2025-02-09 23:43:16 -05:00
parent 5bd5a91540
commit 63d1472eaa
7 changed files with 87 additions and 127 deletions

View File

@@ -9,22 +9,3 @@ vim.api.nvim_create_autocmd("FileType", {
vim.bo.shiftwidth = 2
end,
})
local cmp = require("cmp")
cmp.setup({
mapping = {
["<Tab>"] = cmp.mapping.confirm({ select = true }),
["<CR>"] = cmp.mapping({
i = function(fallback)
if cmp.visible() and cmp.get_active_entry() then
cmp.confirm({ behavior = cmp.ConfirmBehavior.Replace, select = false })
else
fallback()
end
end,
s = cmp.mapping.confirm({ select = true }),
c = cmp.mapping.confirm({ behavior = cmp.ConfirmBehavior.Replace, select = true }),
}),
},
})