diff options
Diffstat (limited to 'lua/lsp/null-ls.lua')
-rw-r--r-- | lua/lsp/null-ls.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lua/lsp/null-ls.lua b/lua/lsp/null-ls.lua index 5611be8d..15fd3628 100644 --- a/lua/lsp/null-ls.lua +++ b/lua/lsp/null-ls.lua @@ -62,10 +62,12 @@ local function setup(filetype, type) if is_table(executables) then for _, exe in pairs(executables) do - setup_ls(exe, type) + if exe ~= "" then + setup_ls(exe, type) + end end end - if is_string(executables) then + if is_string(executables) and executables ~= "" then setup_ls(executables, type) end end |