Skip to content

Disabling LSP Diagnostics for a Specific Line #1266

Answered by glepnir
Koda777 asked this question in Q&A
Discussion options

You must be logged in to vote

this is not relate lspsaga. but you can try

vim.api.nvim_create_autocmd('BufEnter', {
  pattern = your special file pattern
   callback = function(opt)
      vim.diagnostic.disable(opt.buf)
   end
})

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@Koda777
Comment options

Comment options

You must be logged in to vote
1 reply
@Koda777
Comment options

Answer selected by Koda777
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants