fix csharp

This commit is contained in:
christianchiarulli 2021-07-25 13:58:34 -04:00
parent 145661ca97
commit 924565feba
3 changed files with 7 additions and 4 deletions

View file

@ -1 +1 @@
require("lsp").setup "csharp"
require("lsp").setup "cs"

View file

@ -117,11 +117,12 @@ lvim.lang = {
},
},
},
csharp = {
cs = {
formatter = {
exe = "",
args = {},
},
linters = {},
lsp = {
provider = "omnisharp",
setup = {

View file

@ -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