summaryrefslogtreecommitdiff
path: root/lua/lang/cs.lua
diff options
context:
space:
mode:
authorichigo-gyuunyuu <[email protected]>2021-07-21 01:03:15 +0530
committerGitHub <[email protected]>2021-07-21 00:03:15 +0430
commit0064b446a02be13dba0f16f084e073b347716710 (patch)
tree203f9907132b86c37733096bd139cf224b4dd1ad /lua/lang/cs.lua
parent9e640fa4d99beeec97292a00a51b335960aa2b0f (diff)
[Feature] Allow for custom path to a language server binary (#1043)
Diffstat (limited to 'lua/lang/cs.lua')
-rw-r--r--lua/lang/cs.lua9
1 files changed, 6 insertions, 3 deletions
diff --git a/lua/lang/cs.lua b/lua/lang/cs.lua
index 8e34c539..851e226f 100644
--- a/lua/lang/cs.lua
+++ b/lua/lang/cs.lua
@@ -1,8 +1,11 @@
local M = {}
M.config = function()
- -- TODO: implement config for language
- return "No config available!"
+ O.lang.csharp = {
+ lsp = {
+ path = DATA_PATH .. "/lspinstall/csharp/omnisharp/run",
+ },
+ }
end
M.format = function()
@@ -23,7 +26,7 @@ M.lsp = function()
-- C# language server (csharp/OmniSharp) setup
require("lspconfig").omnisharp.setup {
on_attach = require("lsp").common_on_attach,
- cmd = { DATA_PATH .. "/lspinstall/csharp/omnisharp/run", "--languageserver", "--hostPID", tostring(vim.fn.getpid()) },
+ cmd = { O.lang.csharp.lsp.path, "--languageserver", "--hostPID", tostring(vim.fn.getpid()) },
}
end