changed accept autosuggest keybinding to <C-y>
This commit is contained in:
parent
4ff9189fef
commit
0a5efb050c
1 changed files with 10 additions and 0 deletions
|
|
@ -120,6 +120,16 @@
|
|||
-- disable mason.nvim, use programs.neovim.extraPackages
|
||||
{ "williamboman/mason-lspconfig.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,
|
||||
},
|
||||
},
|
||||
})
|
||||
'';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue