Skip to content
This repository has been archived by the owner on Aug 12, 2023. It is now read-only.

How to change linters on demand? #810

Answered by brt
brt asked this question in Q&A
Apr 12, 2022 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

Thank you very much @jose-elias-alvarez, your reply set me in the right direction and I worked out the way to achieve the desired outcome. Once you know what needs to be done, the code seems fairly simple!

Although there was another little twist in there - the LSP language server here apparently already has some base language syntax check enabled on it's own (could be due to me using the LunarVim distribution) - so when I added another one with null-ls, I was pretty puzzled why I'd be seeing double messages!

So here's the changed code that achieves precisely the effect that I described in my earlier posting:

local linters = require "lvim.lsp.null-ls.linters"

linters.setup {
  {
    name …

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@jose-elias-alvarez
Comment options

Answer selected by brt
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