diff options
| author | Pasi Bergman <[email protected]> | 2021-07-06 02:39:40 +0300 | 
|---|---|---|
| committer | GitHub <[email protected]> | 2021-07-05 19:39:40 -0400 | 
| commit | f7aeeba663666b75ab0063f786d21648c0c71766 (patch) | |
| tree | d28db3320da8b241eba2d3ec2f9e9a9d6be67002 /ftplugin | |
| parent | ca75cb5a49a93ceae1d30a3b979dbed58e4169e1 (diff) | |
Add csharp ls setup for cs filetype (#712)
Diffstat (limited to 'ftplugin')
| -rw-r--r-- | ftplugin/cs.lua | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/ftplugin/cs.lua b/ftplugin/cs.lua new file mode 100644 index 00000000..7fdbbc66 --- /dev/null +++ b/ftplugin/cs.lua @@ -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()) }, +} | 
