Disable nvim-cmp autocomplete in Markdown files #2397
-
I'd like to have autocomplete be disabled (so that the list of options doesn't pop up with useless suggestions when I'm just writing text. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 9 replies
-
Hmm ok so I was able to get it working by changing init.lua to have this:
This works, but my understanding is ti breaks upgrading to make changes here, "All changes should be made in the /custom folder". So I tried adding to overrides.lua: M.cmp = { But that doesn't work |
Beta Was this translation helpful? Give feedback.
-
cmp has a enabled* function in its config, you can use that {
"hrsh7th/nvim-cmp",
opts = {
enabled = function()
return (vim.bo.ft ~= "markdown")
end,
},
}, or you can make an autocmd that disables cmp on markdown filetypes
|
Beta Was this translation helpful? Give feedback.
-
Forgot to provide the solution for the toggle function... here it is: Path: M.general = {
}, THX again @siduck |
Beta Was this translation helpful? Give feedback.
@zwk5131 just make a mapping with a function with your cmp code?
something likethis