From dbab9247b6aa1b3a7733a65387bebbffffbf312c Mon Sep 17 00:00:00 2001 From: Daniel Voogsgerd Date: Fri, 15 Nov 2019 23:34:28 +0100 Subject: Add bash language server (#15) --- lua/nvim_lsp/bash.lua | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 lua/nvim_lsp/bash.lua (limited to 'lua/nvim_lsp') 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 -- cgit v1.2.3-70-g09d2