diff options
| author | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2023-07-03 18:15:51 +0200 |
|---|---|---|
| committer | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2023-07-03 18:17:00 +0200 |
| commit | 850f49dee880c6881c53c1decbb6aedf857fec1f (patch) | |
| tree | d889f12822a084fc6f3cc6f0118748598e33c567 /lua/alpha/lsp/mason.lua | |
| parent | b3a686746016d6267792790640d95f51c8555f88 (diff) | |
| download | nvim-conf-850f49dee880c6881c53c1decbb6aedf857fec1f.tar.gz nvim-conf-850f49dee880c6881c53c1decbb6aedf857fec1f.zip | |
update completition and mason tools
Diffstat (limited to 'lua/alpha/lsp/mason.lua')
| -rw-r--r-- | lua/alpha/lsp/mason.lua | 4 |
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"), } |