aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-lsp-installer/installers/bash-ls.lua
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2021-04-04 02:18:34 +0200
committerWilliam Boman <william@redwill.se>2021-04-04 17:30:31 +0200
commit5fe27b3ed00706a5be6a2b8ba6dfc187cb534e39 (patch)
tree340635deeb85cd292e5cb87ad1077a44d3556190 /lua/nvim-lsp-installer/installers/bash-ls.lua
downloadmason-5fe27b3ed00706a5be6a2b8ba6dfc187cb534e39.tar
mason-5fe27b3ed00706a5be6a2b8ba6dfc187cb534e39.tar.gz
mason-5fe27b3ed00706a5be6a2b8ba6dfc187cb534e39.tar.bz2
mason-5fe27b3ed00706a5be6a2b8ba6dfc187cb534e39.tar.lz
mason-5fe27b3ed00706a5be6a2b8ba6dfc187cb534e39.tar.xz
mason-5fe27b3ed00706a5be6a2b8ba6dfc187cb534e39.tar.zst
mason-5fe27b3ed00706a5be6a2b8ba6dfc187cb534e39.zip
init
Diffstat (limited to 'lua/nvim-lsp-installer/installers/bash-ls.lua')
-rw-r--r--lua/nvim-lsp-installer/installers/bash-ls.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/lua/nvim-lsp-installer/installers/bash-ls.lua b/lua/nvim-lsp-installer/installers/bash-ls.lua
new file mode 100644
index 00000000..d784ca51
--- /dev/null
+++ b/lua/nvim-lsp-installer/installers/bash-ls.lua
@@ -0,0 +1,14 @@
+local installer = require('nvim-lsp-installer.installer')
+local capabilities = require('nvim-lsp-installer.capabilities')
+
+local root_dir = installer.get_server_root_path('bash')
+
+return installer.create_lsp_config_installer {
+ name = "bashls",
+ root_dir = root_dir,
+ install_cmd = [[npm install bash-language-server@latest]],
+ default_options = {
+ cmd = { root_dir .. "/node_modules/.bin/bash-language-server", "start" },
+ capabilities = capabilities.create(),
+ },
+}