15 lines
521 B
Lua
15 lines
521 B
Lua
vim.lsp.start({
|
|
name = "bashls",
|
|
cmd = { 'bash-language-server', 'start' },
|
|
root_dir = vim.fn.getcwd(),
|
|
filetypes = { 'sh' },
|
|
single_file_support = true,
|
|
cmd_env = {
|
|
-- Prevent recursive scanning which will cause issues when opening a file
|
|
-- directly in the home directory (e.g. ~/foo.sh).
|
|
--
|
|
-- Default upstream pattern is "**/*@(.sh|.inc|.bash|.command)".
|
|
GLOB_PATTERN = vim.env.GLOB_PATTERN or '*@(.sh|.inc|.bash|.command)',
|
|
},
|
|
})
|