on_attach not called for stylua when using handlers #243
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 |
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'm using mason-null-ls with vanilla lazy.nvim (no distro) )
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?
Beta Was this translation helpful? Give feedback.
All reactions