From 27f421b2fdf353d910a473b1a50ffd3c5dc526b7 Mon Sep 17 00:00:00 2001 From: tastytea Date: Wed, 14 Sep 2022 05:43:20 +0200 Subject: [PATCH] nvim: lsp: add docker-langserver --- .config/nvim/lua/my/lsp.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.config/nvim/lua/my/lsp.lua b/.config/nvim/lua/my/lsp.lua index c74f7af..cc2ffb4 100644 --- a/.config/nvim/lua/my/lsp.lua +++ b/.config/nvim/lua/my/lsp.lua @@ -242,6 +242,13 @@ if vim.fn.executable('yaml-language-server') > 0 then }) end +if vim.fn.executable('docker-langserver') > 0 then + lspconfig.dockerls.setup({ + on_attach = on_attach, + capabilities = capabilities + }) +end + require('lsp-format').setup({ sync = true -- seems to be needed to not interfere with Neogit })