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,7 +1,11 @@
|
|||
local M = {}
|
||||
|
||||
M.config = function()
|
||||
O.lang.kotlin = {}
|
||||
O.lang.kotlin = {
|
||||
lsp = {
|
||||
path = DATA_PATH .. "/lspinstall/kotlin/server/bin/kotlin-language-server",
|
||||
},
|
||||
}
|
||||
end
|
||||
|
||||
M.format = function()
|
||||
|
@ -29,7 +33,7 @@ M.lsp = function()
|
|||
|
||||
local util = require "lspconfig/util"
|
||||
|
||||
local bin_name = DATA_PATH .. "/lspinstall/kotlin/server/bin/kotlin-language-server"
|
||||
local bin_name = O.lang.kotlin.lsp.path
|
||||
if vim.fn.has "win32" == 1 then
|
||||
bin_name = bin_name .. ".bat"
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue