aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/bashls.lua
blob: 7be7aad3f0118083f54919b73ebdd382c79b2374 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
local configs = require 'lspconfig/configs'
local util = require 'lspconfig/util'

local server_name = "bashls"

configs[server_name] = {
  default_config = {
    cmd = {"bash-language-server", "start"};
    filetypes = {"sh"};
    root_dir = util.path.dirname;
  };
  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";
    };
  };
};

-- vim:et ts=2 sw=2