nvim: lsp-utils: Update bash configuration

This commit is contained in:
Sanchayan Maity 2024-11-26 21:46:40 +05:30
parent 3f42d117b6
commit dd1b17287f
Signed by: sanchayanmaity
GPG key ID: 6F6A0609C12038F3

View file

@ -87,12 +87,17 @@ function M.bashls_config()
root_dir = root_directory, root_dir = root_directory,
filetypes = { 'sh' }, filetypes = { 'sh' },
single_file_support = true, single_file_support = true,
cmd_env = { settings = {
bashIde = {
-- Glob pattern for finding and parsing shell script files in the workspace.
-- Used by the background analysis features across files.
-- Prevent recursive scanning which will cause issues when opening a file -- Prevent recursive scanning which will cause issues when opening a file
-- directly in the home directory (e.g. ~/foo.sh). -- directly in the home directory (e.g. ~/foo.sh).
-- --
-- Default upstream pattern is "**/*@(.sh|.inc|.bash|.command)". -- Default upstream pattern is "**/*@(.sh|.inc|.bash|.command)".
GLOB_PATTERN = vim.env.GLOB_PATTERN or '*@(.sh|.inc|.bash|.command)', globPattern = vim.env.GLOB_PATTERN or '*@(.sh|.inc|.bash|.command)',
},
}, },
} }
end end