mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-07-21 11:14:42 +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.graphql = {}
|
||||
O.lang.graphql = {
|
||||
lsp = {
|
||||
path = "graphql-lsp",
|
||||
},
|
||||
}
|
||||
end
|
||||
|
||||
M.format = function()
|
||||
|
@ -20,7 +24,10 @@ M.lsp = function()
|
|||
end
|
||||
|
||||
-- npm install -g graphql-language-service-cli
|
||||
require("lspconfig").graphql.setup { on_attach = require("lsp").common_on_attach }
|
||||
require("lspconfig").graphql.setup {
|
||||
cmd = { O.lang.graphql.lsp.path, "server", "-m", "stream" },
|
||||
on_attach = require("lsp").common_on_attach,
|
||||
}
|
||||
end
|
||||
|
||||
M.dap = function()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue