omnisharp config fix

This commit is contained in:
Rudis Muiznieks 2023-02-10 17:06:22 -06:00
parent 96e4862939
commit 87f05bf93a
Signed by: rudism
GPG Key ID: CABF2F86EF7884F9
1 changed files with 2 additions and 2 deletions

View File

@ -71,9 +71,9 @@ lsp.omnisharp.setup {
if file:sub(-#".csx") == ".csx" then
return util.path.dirname(file)
end
return util.root_pattern("*.sln")(file) or util.root_pattern("*.csproj")(file)
return util.root_pattern("*.sln")(file) or util.root_pattern("*.csproj")(file) or util.root_pattern("omnisharp.json")(file)
end,
cmd = { "/home/rudism/.local/share/omnisharp/OmniSharp", "--languageserver" , "--hostPID", tostring(pid) },
cmd = { "/home/rudism/.local/share/omnisharp/OmniSharp" }, --"--languageserver" , "--hostPID", tostring(pid) },
}
lsp.tsserver.setup {
capabilities = lspcap,