aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorkylo252 <59826753+kylo252@users.noreply.github.com>2023-03-23 05:48:00 +0100
committerGitHub <noreply@github.com>2023-03-23 12:48:00 +0800
commit344a76825f93cdc2ea252fb3b8c0dad6f5fe42bd (patch)
tree9c83240e959bf04bbcc237b5e9884c491ee7f622 /lua
parentdocs: update server_configurations.md (diff)
downloadnvim-lspconfig-344a76825f93cdc2ea252fb3b8c0dad6f5fe42bd.tar
nvim-lspconfig-344a76825f93cdc2ea252fb3b8c0dad6f5fe42bd.tar.gz
nvim-lspconfig-344a76825f93cdc2ea252fb3b8c0dad6f5fe42bd.tar.bz2
nvim-lspconfig-344a76825f93cdc2ea252fb3b8c0dad6f5fe42bd.tar.lz
nvim-lspconfig-344a76825f93cdc2ea252fb3b8c0dad6f5fe42bd.tar.xz
nvim-lspconfig-344a76825f93cdc2ea252fb3b8c0dad6f5fe42bd.tar.zst
nvim-lspconfig-344a76825f93cdc2ea252fb3b8c0dad6f5fe42bd.zip
refactor(bashls): migrate to a workspace config (#2520)
As suggested by upstream, see bash-lsp/bash-language-server#599 > Environment variable configuration is being deprecated, please use workspace configuration.
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/server_configurations/bashls.lua17
1 files changed, 11 insertions, 6 deletions
diff --git a/lua/lspconfig/server_configurations/bashls.lua b/lua/lspconfig/server_configurations/bashls.lua
index 3f25c76f..eb190c3a 100644
--- a/lua/lspconfig/server_configurations/bashls.lua
+++ b/lua/lspconfig/server_configurations/bashls.lua
@@ -10,12 +10,17 @@ end
return {
default_config = {
cmd = cmd,
- 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)',
+ 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
+ -- directly in the home directory (e.g. ~/foo.sh).
+ --
+ -- Default upstream pattern is "**/*@(.sh|.inc|.bash|.command)".
+ globPattern = vim.env.GLOB_PATTERN or '*@(.sh|.inc|.bash|.command)',
+ },
},
filetypes = { 'sh' },
root_dir = util.find_git_ancestor,