From 850f49dee880c6881c53c1decbb6aedf857fec1f Mon Sep 17 00:00:00 2001 From: Ariel D'Alessandro Date: Mon, 3 Jul 2023 18:15:51 +0200 Subject: update completition and mason tools --- lua/alpha/lsp/mason.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lua/alpha/lsp') 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"), } -- cgit v1.2.3