aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/nvim_lsp.lua1
-rw-r--r--lua/nvim_lsp/bash.lua28
2 files changed, 29 insertions, 0 deletions
diff --git a/lua/nvim_lsp.lua b/lua/nvim_lsp.lua
index a2305eee..550d56dd 100644
--- a/lua/nvim_lsp.lua
+++ b/lua/nvim_lsp.lua
@@ -1,4 +1,5 @@
local skeleton = require 'nvim_lsp/skeleton'
+require 'nvim_lsp/bash'
require 'nvim_lsp/clangd'
require 'nvim_lsp/elmls'
require 'nvim_lsp/gopls'
diff --git a/lua/nvim_lsp/bash.lua b/lua/nvim_lsp/bash.lua
new file mode 100644
index 00000000..a28ab2aa
--- /dev/null
+++ b/lua/nvim_lsp/bash.lua
@@ -0,0 +1,28 @@
+local skeleton = require 'nvim_lsp/skeleton'
+local util = require 'nvim_lsp/util'
+local lsp = vim.lsp
+
+local cwd = vim.loop.cwd()
+
+skeleton.bash = {
+ default_config = {
+ cmd = {"bash-language-server", "start"};
+ filetypes = {"sh"};
+ root_dir = function() return cwd end;
+ log_level = lsp.protocol.MessageType.Warning;
+ settings = {};
+ };
+ -- on_new_config = function(new_config) end;
+ -- on_attach = function(client, bufnr) end;
+ docs = {
+ description = [[
+For install instruction visit:
+https://github.com/mads-hartmann/bash-language-server#installation
+]];
+ default_config = {
+ root_dir = "vim's starting directory";
+ };
+ };
+};
+
+-- vim:et ts=2 sw=2