From 6490787142c3b9b21f3ab0111058bd67399c3ca0 Mon Sep 17 00:00:00 2001 From: qwjyh Date: Wed, 1 May 2024 18:32:06 +0900 Subject: [PATCH] nvim: add support for powershell_es on linux --- dotfiles/neovim/init.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dotfiles/neovim/init.lua b/dotfiles/neovim/init.lua index 8308575..d37aed4 100644 --- a/dotfiles/neovim/init.lua +++ b/dotfiles/neovim/init.lua @@ -597,8 +597,10 @@ lspconfig.bashls.setup { capabilities = capabilities, } -- pwsh +local win_pwsh_es_path = '~/scoop/apps/powershell-editorservice/current' +local arch_pwsh_es_path = "/opt/powershell-editor-services/" lspconfig.powershell_es.setup { - bundle_path = '~/scoop/apps/powershell-editorservice/current', + bundle_path = vim.fn.has('win32') == 1 and win_pwsh_es_path or arch_pwsh_es_path, capabilities = capabilities, } -- ccls