From 924565feba27661bfe4ccc413a72e2b27e590061 Mon Sep 17 00:00:00 2001 From: christianchiarulli Date: Sun, 25 Jul 2021 13:58:34 -0400 Subject: fix csharp --- lua/lsp/null-ls.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lua/lsp/null-ls.lua') 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 -- cgit v1.2.3