소스 검색

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