changed accept autosuggest keybinding to <C-y>

This commit is contained in:
KoenDR06 2025-04-08 12:47:38 +02:00
parent 4ff9189fef
commit 0a5efb050c

View file

@ -120,6 +120,16 @@
-- disable mason.nvim, use programs.neovim.extraPackages -- disable mason.nvim, use programs.neovim.extraPackages
{ "williamboman/mason-lspconfig.nvim", enabled = false }, { "williamboman/mason-lspconfig.nvim", enabled = false },
{ "williamboman/mason.nvim", enabled = false }, { "williamboman/mason.nvim", enabled = false },
{
"hrsh7th/nvim-cmp",
opts = function(_, opts)
local cmp = require("cmp")
opts.mapping = vim.tbl_deep_extend("force", opts.mapping, {
["<C-y>"] = cmp.mapping.confirm({ select = true }),
["<CR>"] = cmp.config.disable,
})
end,
},
}, },
}) })
''; '';