summaryrefslogtreecommitdiff
path: root/.config/nvim/ftplugin/dockerfile.lua
blob: cbf3572a8fabce073269799e96af46cd7927bf77 (plain)
1
2
3
4
5
6
7
8
9
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("cfg.lsp").common_on_attach,
  root_dir = vim.loop.cwd,
}