From 8834e22b7164c42ccea657804037053971e617ae Mon Sep 17 00:00:00 2001 From: Luong Vo Date: Fri, 30 Jul 2021 08:35:15 +0700 Subject: [PATCH] add config for dockerfile lsp Signed-off-by: Luong Vo --- ftplugin/dockerfile.lua | 1 + lua/default_config.lua | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 ftplugin/dockerfile.lua diff --git a/ftplugin/dockerfile.lua b/ftplugin/dockerfile.lua new file mode 100644 index 0000000..6912211 --- /dev/null +++ b/ftplugin/dockerfile.lua @@ -0,0 +1 @@ +require("lsp").setup("docker") diff --git a/lua/default_config.lua b/lua/default_config.lua index 7f42d13..847688f 100644 --- a/lua/default_config.lua +++ b/lua/default_config.lua @@ -117,6 +117,23 @@ O = { local common_on_attach = require("lsp").common_on_attach O.lang = { + docker = { + formatter = { + exe = "", + args = {}, + }, + linters = {}, + lsp = { + provider = "dockerls", + setup = { + cmd = { + DATA_PATH .. "/lspinstall/dockerfile/node_modules/.bin/docker-langserver", + "--stdio", + }, + on_attach = common_on_attach, + }, + }, + }, lua = { formatter = { exe = "stylua",