mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-07-20 10:45:14 +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
|
@ -8,6 +8,9 @@ M.config = function()
|
|||
diagnostics_delay = 300,
|
||||
formatter_line_length = 80,
|
||||
latex_formatter = "latexindent",
|
||||
lsp = {
|
||||
path = DATA_PATH .. "/lspinstall/latex/texlab",
|
||||
},
|
||||
build = {
|
||||
executable = "latexmk",
|
||||
args = { "-pdf", "-interaction=nonstopmode", "-synctex=1", "%f" },
|
||||
|
@ -77,7 +80,7 @@ M.lsp = function()
|
|||
end
|
||||
|
||||
require("lspconfig").texlab.setup {
|
||||
cmd = { DATA_PATH .. "/lspinstall/latex/texlab" },
|
||||
cmd = { O.lang.latex.lsp.path },
|
||||
on_attach = require("lsp").common_on_attach,
|
||||
handlers = {
|
||||
["textDocument/publishDiagnostics"] = vim.lsp.with(vim.lsp.diagnostic.on_publish_diagnostics, {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue