From c727df7bcaa13202f81fb513ea61d6a75d634b84 Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Wed, 5 Feb 2020 19:37:38 +0900 Subject: Fix refresh_pattern and typed_pattern --- settings.json | 1 + settings/powershell-languageserver.vim | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3-54-g00ecf