26 lines
781 B
Lua
26 lines
781 B
Lua
return {
|
|
cmd = { 'bash-language-server', 'start' },
|
|
filetypes = { 'bash', 'sh', 'zsh' },
|
|
root_markers = { '.git', vim.uv.cwd() },
|
|
settings = {
|
|
bashIde = {
|
|
globPattern = vim.env.GLOB_PATTERN or '*@(.sh|.inc|.bash|.command)',
|
|
-- Modern formatting options (requires shfmt)
|
|
tabSize = 2,
|
|
insertSpaces = true,
|
|
-- Enable comprehensive features like Ruby LSP
|
|
enableSourceErrorDiagnostics = true,
|
|
enableCodeLens = true,
|
|
includeAllWorkspaceSymbols = true,
|
|
-- Background analysis for better performance
|
|
backgroundAnalysisMaxFiles = 500,
|
|
-- ShellCheck integration for linting
|
|
shellcheckPath = 'shellcheck',
|
|
shellcheckArguments = {
|
|
'--shell=bash',
|
|
'--format=json',
|
|
},
|
|
},
|
|
},
|
|
}
|