On-fly integration of Mason programs
This commit is contained in:
@@ -64,3 +64,21 @@ vim.lsp.config("vhdl_ls", {
|
|||||||
root_markers = { "vhdl_ls.toml", ".git" },
|
root_markers = { "vhdl_ls.toml", ".git" },
|
||||||
settings = {},
|
settings = {},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
local registry = require("mason-registry")
|
||||||
|
|
||||||
|
registry:on("package:install:success", function(pkg)
|
||||||
|
vim.schedule(function()
|
||||||
|
vim.notify("Installed " .. pkg.name)
|
||||||
|
|
||||||
|
-- Formatter neu laden
|
||||||
|
package.loaded["formatter"] = nil
|
||||||
|
require("formatter")
|
||||||
|
|
||||||
|
-- ALE reset
|
||||||
|
vim.cmd("ALEFixSuggest") -- oder ALELint
|
||||||
|
|
||||||
|
-- LSP neu attachen
|
||||||
|
vim.cmd("LspRestart")
|
||||||
|
end)
|
||||||
|
end)
|
||||||
|
|||||||
Reference in New Issue
Block a user