[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

@ -21,6 +21,9 @@ M.config = function()
args = { "--standard=PSR12", vim.api.nvim_buf_get_name(0) },
stdin = false,
},
lsp = {
path = DATA_PATH .. "/lspinstall/php/node_modules/.bin/intelephense",
},
}
end
@ -53,7 +56,7 @@ M.lsp = function()
end
require("lspconfig").intelephense.setup {
cmd = { DATA_PATH .. "/lspinstall/php/node_modules/.bin/intelephense", "--stdio" },
cmd = { O.lang.php.lsp.path, "--stdio" },
on_attach = require("lsp").common_on_attach,
handlers = {
["textDocument/publishDiagnostics"] = vim.lsp.with(vim.lsp.diagnostic.on_publish_diagnostics, {