From 88616bde7c7b5b25f505997aa2171245f7341453 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Thu, 8 Jul 2021 20:17:26 +0200 Subject: Updates to lang stuff --- .config/nvim/ftplugin/dockerfile.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to '.config/nvim/ftplugin/dockerfile.lua') 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, } -- cgit v1.2.3-70-g09d2