mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-08-04 01:55:08 +02:00
Add csharp ls setup for cs filetype (#712)
This commit is contained in:
parent
ca75cb5a49
commit
f7aeeba663
1 changed files with 6 additions and 0 deletions
6
ftplugin/cs.lua
Normal file
6
ftplugin/cs.lua
Normal file
|
@ -0,0 +1,6 @@
|
|||
-- C# language server (csharp/OmniSharp) setup
|
||||
require("lspconfig").omnisharp.setup{
|
||||
on_attach = require("lsp").common_on_attach,
|
||||
root_dir = require("lspconfig").util.root_pattern(".sln",".git"),
|
||||
cmd = { DATA_PATH .. "/lspinstall/csharp/omnisharp/run", "--languageserver", "--hostPID", tostring(vim.fn.getpid()) },
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue