aboutsummaryrefslogtreecommitdiffstats
path: root/lua/alpha/lsp/mason.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/alpha/lsp/mason.lua')
-rw-r--r--lua/alpha/lsp/mason.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/lua/alpha/lsp/mason.lua b/lua/alpha/lsp/mason.lua
index e164562..6948454 100644
--- a/lua/alpha/lsp/mason.lua
+++ b/lua/alpha/lsp/mason.lua
@@ -21,5 +21,7 @@ mason_lspconfig.setup {
-- filter the list for the ones not globally installed
require("mason-tool-installer").setup {
- ensure_installed = require "alpha.lsp.tools",
+ ensure_installed = vim.tbl_filter(function (tool)
+ return vim.fn.executable(tool) == 0
+ end, require "alpha.lsp.tools"),
}