summaryrefslogtreecommitdiff
path: root/lua/lang/dockerfile.lua
diff options
context:
space:
mode:
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,
}