Skip to content
This repository has been archived by the owner on Jun 1, 2022. It is now read-only.

Commit

Permalink
add config for dockerfile lsp
Browse files Browse the repository at this point in the history
Signed-off-by: Luong Vo <vo.tran.thanh.luong@gmail.com>
  • Loading branch information
luong-komorebi committed Jul 30, 2021
1 parent 73a929f commit 8834e22
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions ftplugin/dockerfile.lua
@@ -0,0 +1 @@
require("lsp").setup("docker")
17 changes: 17 additions & 0 deletions lua/default_config.lua
Expand Up @@ -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",
Expand Down

0 comments on commit 8834e22

Please sign in to comment.