Skip to content

Disable nvim-cmp autocomplete in Markdown files #2397

Answered by siduck
joeldrotleff asked this question in Q&A
Discussion options

You must be logged in to vote

@zwk5131 just make a mapping with a function with your cmp code?

something likethis

function()               
       vim.b.cmp_enabled = not vim.b.cmp_enabled
       require('cmp').setup.buffer { enabled = vim.b.cmp_enabled }
 end

Replies: 3 comments 9 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
9 replies
@zwk5131
Comment options

@siduck
Comment options

@zwk5131
Comment options

@siduck
Comment options

Answer selected by siduck
@zwk5131
Comment options

@siduck
Comment options

@zwk5131
Comment options

@kaelynhughes
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants