summaryrefslogtreecommitdiff
path: root/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/dockerls.lua
diff options
context:
space:
mode:
Diffstat (limited to 'start/lspconfig-0.1.8/lua/lspconfig/server_configurations/dockerls.lua')
-rw-r--r--start/lspconfig-0.1.8/lua/lspconfig/server_configurations/dockerls.lua38
1 files changed, 38 insertions, 0 deletions
diff --git a/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/dockerls.lua b/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/dockerls.lua
new file mode 100644
index 0000000..dde050b
--- /dev/null
+++ b/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/dockerls.lua
@@ -0,0 +1,38 @@
+local util = require 'lspconfig.util'
+
+return {
+ default_config = {
+ cmd = { 'docker-langserver', '--stdio' },
+ filetypes = { 'dockerfile' },
+ root_dir = util.root_pattern 'Dockerfile',
+ single_file_support = true,
+ },
+ docs = {
+ description = [[
+https://github.com/rcjsuen/dockerfile-language-server-nodejs
+
+`docker-langserver` can be installed via `npm`:
+```sh
+npm install -g dockerfile-language-server-nodejs
+```
+
+Additional configuration can be applied in the following way:
+```lua
+require("lspconfig").dockerls.setup {
+ settings = {
+ docker = {
+ languageserver = {
+ formatter = {
+ ignoreMultilineInstructions = true,
+ },
+ },
+ }
+ }
+}
+```
+ ]],
+ default_config = {
+ root_dir = [[root_pattern("Dockerfile")]],
+ },
+ },
+}