[Feature] Allow for custom path to a language server binary (#1043)

This commit is contained in:
ichigo-gyuunyuu 2021-07-21 01:03:15 +05:30 committed by GitHub
parent 9e640fa4d9
commit 0064b446a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
30 changed files with 150 additions and 45 deletions

View file

@ -1,7 +1,11 @@
local M = {}
M.config = function()
O.lang.julia = {}
O.lang.julia = {
lsp = {
path = CONFIG_PATH .. "/lua/lsp/julia/run.jl",
},
}
end
M.format = function()
@ -30,7 +34,7 @@ M.lsp = function()
"--startup-file=no",
"--history-file=no",
-- vim.fn.expand "~/.config/nvim/lua/lsp/julia/run.jl",
CONFIG_PATH .. "/lua/lsp/julia/run.jl",
O.lang.julia.lsp.path,
}
require("lspconfig").julials.setup {
cmd = cmd,