From 2a7b3d4892605508d0b0328444d689e1c4922897 Mon Sep 17 00:00:00 2001 From: christianchiarulli Date: Wed, 14 Jul 2021 18:50:07 -0400 Subject: reformat most langs --- lua/lang/dockerfile.lua | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 lua/lang/dockerfile.lua (limited to 'lua/lang/dockerfile.lua') diff --git a/lua/lang/dockerfile.lua b/lua/lang/dockerfile.lua new file mode 100644 index 00000000..f33d3456 --- /dev/null +++ b/lua/lang/dockerfile.lua @@ -0,0 +1,36 @@ +local M = {} + +M.config = function() + -- TODO: implement config for language + return "No config available!" +end + +M.format = function() + -- TODO: implement formatter for language + return "No formatter available!" +end + +M.lint = function() + -- TODO: implement linters (if applicable) + return "No linters configured!" +end + +M.lsp = function() + if require("lv-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, + root_dir = vim.loop.cwd, + } +end + +M.dap = function() + -- TODO: implement dap + return "No DAP configured!" +end + +return M -- cgit v1.2.3