aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--settings.json1
-rw-r--r--settings/powershell-languageserver.vim2
2 files changed, 2 insertions, 1 deletions
diff --git a/settings.json b/settings.json
index 40915b0..64145b7 100644
--- a/settings.json
+++ b/settings.json
@@ -345,6 +345,7 @@
],
"ps1": [
{
+ "refresh_pattern": "\\(\\$[a-zA-Z0-9_:]*\\|\\k\\+\\)$",
"command": "powershell-languageserver",
"requires": [
"pwsh"
diff --git a/settings/powershell-languageserver.vim b/settings/powershell-languageserver.vim
index b647002..105cd19 100644
--- a/settings/powershell-languageserver.vim
+++ b/settings/powershell-languageserver.vim
@@ -7,7 +7,7 @@ augroup vimlsp_settings_powershell_languageserver
\ 'initialization_options': lsp_settings#get('powershell-languageserver', 'initialization_options', v:null),
\ 'whitelist': lsp_settings#get('powershell-languageserver', 'whitelist', ['ps1']),
\ 'blacklist': lsp_settings#get('powershell-languageserver', 'blacklist', []),
- \ 'config': lsp_settings#get('solargraph', 'config', {'typed_pattern': '\(\$\k*\|\k\+\)$'}),
+ \ 'config': lsp_settings#get('solargraph', 'config', {'typed_pattern': '\(\$[a-zA-Z0-9_:]*\|\k\+\)$'}),
\ 'workspace_config': lsp_settings#get('powershell-languageserver', 'workspace_config', {}),
\ }
augroup END