From aaedc00d6d4baeb300f23c88c576b93085635f49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nina=20Chl=C3=B3e=20Kassandra=20Rei=C3=9F?= Date: Thu, 7 May 2026 20:32:56 +0200 Subject: [PATCH] On-fly integration of Mason programs --- lua/lspconfiguration.lua | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/lua/lspconfiguration.lua b/lua/lspconfiguration.lua index a893edc..eaee051 100644 --- a/lua/lspconfiguration.lua +++ b/lua/lspconfiguration.lua @@ -64,3 +64,21 @@ vim.lsp.config("vhdl_ls", { root_markers = { "vhdl_ls.toml", ".git" }, 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)