on_attach not called for stylua when using handlers #109
Replies: 1 comment
-
|
Oh I'm stupid, I thought you could have individual on_attach functions for all the formatters/diagnostics. I put the on_attach key into the direct mason-null-ls opts and that seems to work. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I wanted to setup a handler for registering stylua with the current buffer. So I thought I could use my preexisting on_attach function that I use for my lsp's (is that a good idea?). Anyway, it doesn't seem to work, on_attach is not called. For this contrived example I replaced it with a more simple function that notifies me if stylua was attached:
Am I doing this correctly, or what am I missing?
(I'm using lazy.nvim without a distro)
Beta Was this translation helpful? Give feedback.
All reactions