summaryrefslogtreecommitdiff
path: root/.config/nvim/ftplugin/dockerfile.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/ftplugin/dockerfile.lua')
-rw-r--r--.config/nvim/ftplugin/dockerfile.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/.config/nvim/ftplugin/dockerfile.lua b/.config/nvim/ftplugin/dockerfile.lua
index 37b4317..cbf3572 100644
--- a/.config/nvim/ftplugin/dockerfile.lua
+++ b/.config/nvim/ftplugin/dockerfile.lua
@@ -1,6 +1,10 @@
+if require("cfg.utils").check_lsp_client_active "dockerls" then
+ return
+end
+
-- npm install -g dockerfile-language-server-nodejs
require("lspconfig").dockerls.setup {
cmd = { DATA_PATH .. "/lspinstall/dockerfile/node_modules/.bin/docker-langserver", "--stdio" },
- on_attach = require("lsp").common_on_attach,
+ on_attach = require("cfg.lsp").common_on_attach,
root_dir = vim.loop.cwd,
}