mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-20 10:35:08 +02:00
fix csharp
This commit is contained in:
parent
145661ca97
commit
924565feba
3 changed files with 7 additions and 4 deletions
|
@ -1 +1 @@
|
|||
require("lsp").setup "csharp"
|
||||
require("lsp").setup "cs"
|
||||
|
|
|
@ -117,11 +117,12 @@ lvim.lang = {
|
|||
},
|
||||
},
|
||||
},
|
||||
csharp = {
|
||||
cs = {
|
||||
formatter = {
|
||||
exe = "",
|
||||
args = {},
|
||||
},
|
||||
linters = {},
|
||||
lsp = {
|
||||
provider = "omnisharp",
|
||||
setup = {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue