Replies: 2 comments
-
|
You need to configure for each language on_attach = on_attach |
Beta Was this translation helpful? Give feedback.
-
This is WAI. lspconfig uses the You should be able to leverage Mason's event system to automatically do this: local registry = require("mason-registry")
registry:on("package:install:success", function ()
-- vim.schedule might not be needed 🤷♂️
vim.schedule(function ()
vim.cmd.doautoall { "FileType" }
end)
end) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey!
I don't remember if this was normal behaviour but I'm using
masonandmason-lspconfigand it seems that when I first install a LSP if won't get attached to the current buffer I'm in and I have to either do:eor close and open again. Just a minor annoyance but I'm wondering if that's the default or some other shenanigan having to do with my config.I'm using
lazy.nvimand my lsp spec looks like this:Beta Was this translation helpful? Give feedback.
All reactions