瀏覽代碼

Add csharp ls setup for cs filetype (#712)

Pasi Bergman 4 年之前
父節點
當前提交
f7aeeba663
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      ftplugin/cs.lua

+ 6 - 0
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()) },
+}