summaryrefslogtreecommitdiff
path: root/lua/lang/dockerfile.lua
diff options
context:
space:
mode:
authorichigo-gyuunyuu <[email protected]>2021-07-21 01:03:15 +0530
committerGitHub <[email protected]>2021-07-21 00:03:15 +0430
commit0064b446a02be13dba0f16f084e073b347716710 (patch)
tree203f9907132b86c37733096bd139cf224b4dd1ad /lua/lang/dockerfile.lua
parent9e640fa4d99beeec97292a00a51b335960aa2b0f (diff)
[Feature] Allow for custom path to a language server binary (#1043)
Diffstat (limited to 'lua/lang/dockerfile.lua')
-rw-r--r--lua/lang/dockerfile.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/lua/lang/dockerfile.lua b/lua/lang/dockerfile.lua
index 837aab6a..35134f36 100644
--- a/lua/lang/dockerfile.lua
+++ b/lua/lang/dockerfile.lua
@@ -1,7 +1,11 @@
local M = {}
M.config = function()
- O.lang.docker = {}
+ O.lang.docker = {
+ lsp = {
+ path = DATA_PATH .. "/lspinstall/dockerfile/node_modules/.bin/docker-langserver",
+ },
+ }
end
M.format = function()
@@ -21,7 +25,7 @@ M.lsp = function()
-- npm install -g dockerfile-language-server-nodejs
require("lspconfig").dockerls.setup {
- cmd = { DATA_PATH .. "/lspinstall/dockerfile/node_modules/.bin/docker-langserver", "--stdio" },
+ cmd = { O.lang.docker.lsp.path, "--stdio" },
on_attach = require("lsp").common_on_attach,
root_dir = vim.loop.cwd,
}