feat: disable autocomplete with the enter key
Some checks failed
Container build / container-build (push) Has been cancelled
Some checks failed
Container build / container-build (push) Has been cancelled
This commit is contained in:
parent
63ac1aae83
commit
a67ea6c795
9
config/nvim/plugins/autocomplete.lua
Normal file
9
config/nvim/plugins/autocomplete.lua
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
return {
|
||||||
|
"hrsh7th/nvim-cmp",
|
||||||
|
opts = function(_, opts)
|
||||||
|
local cmp = require("cmp")
|
||||||
|
opts.mapping = vim.tbl_deep_extend("force", opts.mapping, {
|
||||||
|
["<CR>"] = cmp.config.disable,
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user