mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-07-21 03:04:31 +02:00
[Feature] Allow for custom path to a language server binary (#1043)
This commit is contained in:
parent
9e640fa4d9
commit
0064b446a0
30 changed files with 150 additions and 45 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue