diff options
| author | Wuilliam Lacruz <wuilliam.lacruz@pedidosya.com> | 2020-12-10 13:28:09 -0300 |
|---|---|---|
| committer | Wuilliam Lacruz <wuilliam.lacruz@pedidosya.com> | 2020-12-10 13:28:09 -0300 |
| commit | 2e04d8734256f7613846d160428349496494b32b (patch) | |
| tree | 05e87bc54c9f858f9b57328565181b2a67fc5ba0 /lua/nvim_lsp/bashls.lua | |
| parent | fix(groovyls) README fix (diff) | |
| parent | Merge pull request #438 from HiPhish/kotlin (diff) | |
| download | nvim-lspconfig-2e04d8734256f7613846d160428349496494b32b.tar nvim-lspconfig-2e04d8734256f7613846d160428349496494b32b.tar.gz nvim-lspconfig-2e04d8734256f7613846d160428349496494b32b.tar.bz2 nvim-lspconfig-2e04d8734256f7613846d160428349496494b32b.tar.lz nvim-lspconfig-2e04d8734256f7613846d160428349496494b32b.tar.xz nvim-lspconfig-2e04d8734256f7613846d160428349496494b32b.tar.zst nvim-lspconfig-2e04d8734256f7613846d160428349496494b32b.zip | |
Merge branch 'master' of github.com:neovim/nvim-lspconfig into groovyls-support
Diffstat (limited to 'lua/nvim_lsp/bashls.lua')
| -rw-r--r-- | lua/nvim_lsp/bashls.lua | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/lua/nvim_lsp/bashls.lua b/lua/nvim_lsp/bashls.lua deleted file mode 100644 index 0bc9604c..00000000 --- a/lua/nvim_lsp/bashls.lua +++ /dev/null @@ -1,44 +0,0 @@ -local configs = require 'nvim_lsp/configs' -local util = require 'nvim_lsp/util' - -local server_name = "bashls" -local bin_name = "bash-language-server" - -local installer = util.npm_installer { - server_name = server_name; - packages = { "bash-language-server" }; - binaries = {bin_name}; -} - -configs[server_name] = { - default_config = { - cmd = {"bash-language-server", "start"}; - filetypes = {"sh"}; - root_dir = util.path.dirname; - }; - on_new_config = function(new_config) - local install_info = installer.info() - if install_info.is_installed then - if type(new_config.cmd) == 'table' then - -- Try to preserve any additional args from upstream changes. - new_config.cmd[1] = install_info.binaries[bin_name] - else - new_config.cmd = {install_info.binaries[bin_name]} - end - end - end; - docs = { - description = [[ -https://github.com/mads-hartmann/bash-language-server - -Language server for bash, written using tree sitter in typescript. -]]; - default_config = { - root_dir = "vim's starting directory"; - }; - }; -}; - -configs[server_name].install = installer.install -configs[server_name].install_info = installer.info --- vim:et ts=2 sw=2 |
