From f7aeeba663666b75ab0063f786d21648c0c71766 Mon Sep 17 00:00:00 2001 From: Pasi Bergman Date: Tue, 6 Jul 2021 02:39:40 +0300 Subject: Add csharp ls setup for cs filetype (#712) --- ftplugin/cs.lua | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 ftplugin/cs.lua (limited to 'ftplugin') 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()) }, +} -- cgit v1.2.3