summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ftplugin/cs.lua2
-rw-r--r--lua/default-config.lua3
-rw-r--r--lua/lsp/null-ls.lua6
3 files changed, 7 insertions, 4 deletions
diff --git a/ftplugin/cs.lua b/ftplugin/cs.lua
index dd76f973..6c349494 100644
--- a/ftplugin/cs.lua
+++ b/ftplugin/cs.lua
@@ -1 +1 @@
-require("lsp").setup "csharp"
+require("lsp").setup "cs"
diff --git a/lua/default-config.lua b/lua/default-config.lua
index 16e9d1fd..ba76afd2 100644
--- a/lua/default-config.lua
+++ b/lua/default-config.lua
@@ -117,11 +117,12 @@ lvim.lang = {
},
},
},
- csharp = {
+ cs = {
formatter = {
exe = "",
args = {},
},
+ linters = {},
lsp = {
provider = "omnisharp",
setup = {
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