diff options
Diffstat (limited to 'lua/lsp/null-ls.lua')
-rw-r--r-- | lua/lsp/null-ls.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/lsp/null-ls.lua b/lua/lsp/null-ls.lua index 48924be5..5008144f 100644 --- a/lua/lsp/null-ls.lua +++ b/lua/lsp/null-ls.lua @@ -43,7 +43,7 @@ local function setup_ls(exe, type) end end else - if vim.fn.executable(exe) == 1 then + if null_ls.builtins[type][exe] and vim.fn.executable(null_ls.builtins[type][exe]._opts.command) then table.insert(sources, null_ls.builtins[type][exe]) end end |