aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2025-04-26 18:27:21 +0000
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2025-04-26 18:27:21 +0000
commitf89f18c48c4115239a5c3831db00c04359b0b0c7 (patch)
treee0d5ab53475dd42f327714a5486d658dace028e4
parentfeat(powershell_es): add vim.lsp.config support #3784 (diff)
downloadnvim-lspconfig-f89f18c48c4115239a5c3831db00c04359b0b0c7.tar
nvim-lspconfig-f89f18c48c4115239a5c3831db00c04359b0b0c7.tar.gz
nvim-lspconfig-f89f18c48c4115239a5c3831db00c04359b0b0c7.tar.bz2
nvim-lspconfig-f89f18c48c4115239a5c3831db00c04359b0b0c7.tar.lz
nvim-lspconfig-f89f18c48c4115239a5c3831db00c04359b0b0c7.tar.xz
nvim-lspconfig-f89f18c48c4115239a5c3831db00c04359b0b0c7.tar.zst
nvim-lspconfig-f89f18c48c4115239a5c3831db00c04359b0b0c7.zip
docs: update configs.md
skip-checks: true
-rw-r--r--doc/configs.md57
-rw-r--r--doc/configs.txt51
2 files changed, 108 insertions, 0 deletions
diff --git a/doc/configs.md b/doc/configs.md
index 490e942a..14733fc2 100644
--- a/doc/configs.md
+++ b/doc/configs.md
@@ -215,6 +215,7 @@ Nvim by running `:help lspconfig-all`.
- [pli](#pli)
- [poryscript_pls](#poryscript_pls)
- [postgres_lsp](#postgres_lsp)
+- [powershell_es](#powershell_es)
- [prismals](#prismals)
- [prolog_ls](#prolog_ls)
- [prosemd_lsp](#prosemd_lsp)
@@ -8016,6 +8017,62 @@ Default config:
---
+## powershell_es
+
+https://github.com/PowerShell/PowerShellEditorServices
+
+Language server for PowerShell.
+
+To install, download and extract PowerShellEditorServices.zip
+from the [releases](https://github.com/PowerShell/PowerShellEditorServices/releases).
+To configure the language server, set the property `bundle_path` to the root
+of the extracted PowerShellEditorServices.zip.
+
+```lua
+vim.lsp.config('powershell_es', {
+ bundle_path = 'c:/w/PowerShellEditorServices',
+})
+```
+
+By default the language server is started in `pwsh` (PowerShell Core). This can be changed by specifying `shell`.
+
+```lua
+vim.lsp.config('powershell_es', {
+ bundle_path = 'c:/w/PowerShellEditorServices',
+ shell = 'powershell.exe',
+})
+```
+
+Note that the execution policy needs to be set to `Unrestricted` for the languageserver run under PowerShell
+
+If necessary, specific `cmd` can be defined instead of `bundle_path`.
+See [PowerShellEditorServices](https://github.com/PowerShell/PowerShellEditorServices#standard-input-and-output)
+to learn more.
+
+```lua
+vim.lsp.config('powershell_es', {
+ cmd = {'pwsh', '-NoLogo', '-NoProfile', '-Command', "c:/PSES/Start-EditorServices.ps1 ..."},
+})
+```
+
+Snippet to enable the language server:
+```lua
+vim.lsp.enable('powershell_es')
+```
+
+Default config:
+- `cmd`: [../lsp/powershell_es.lua:39](../lsp/powershell_es.lua#L39)
+- `filetypes` :
+ ```lua
+ { "ps1" }
+ ```
+- `root_markers` :
+ ```lua
+ { "PSScriptAnalyzerSettings.psd1", ".git" }
+ ```
+
+---
+
## prismals
Language Server for the Prisma JavaScript and TypeScript ORM
diff --git a/doc/configs.txt b/doc/configs.txt
index 82f172ec..8b31225f 100644
--- a/doc/configs.txt
+++ b/doc/configs.txt
@@ -6118,6 +6118,57 @@ Default config:
<
------------------------------------------------------------------------------
+powershell_es
+
+https://github.com/PowerShell/PowerShellEditorServices
+
+Language server for PowerShell.
+
+To install, download and extract PowerShellEditorServices.zip
+from the [releases](https://github.com/PowerShell/PowerShellEditorServices/releases).
+To configure the language server, set the property `bundle_path` to the root
+of the extracted PowerShellEditorServices.zip.
+
+```lua
+vim.lsp.config('powershell_es', {
+ bundle_path = 'c:/w/PowerShellEditorServices',
+})
+```
+
+By default the language server is started in `pwsh` (PowerShell Core). This can be changed by specifying `shell`.
+
+```lua
+vim.lsp.config('powershell_es', {
+ bundle_path = 'c:/w/PowerShellEditorServices',
+ shell = 'powershell.exe',
+})
+```
+
+Note that the execution policy needs to be set to `Unrestricted` for the languageserver run under PowerShell
+
+If necessary, specific `cmd` can be defined instead of `bundle_path`.
+See [PowerShellEditorServices](https://github.com/PowerShell/PowerShellEditorServices#standard-input-and-output)
+to learn more.
+
+```lua
+vim.lsp.config('powershell_es', {
+ cmd = {'pwsh', '-NoLogo', '-NoProfile', '-Command', "c:/PSES/Start-EditorServices.ps1 ..."},
+})
+```
+
+Snippet to enable the language server: >lua
+ vim.lsp.enable('powershell_es')
+
+
+Default config:
+- cmd (use "gF" to view): ../lsp/powershell_es.lua:39
+- filetypes: >lua
+ { "ps1" }
+- root_markers: >lua
+ { "PSScriptAnalyzerSettings.psd1", ".git" }
+<
+
+------------------------------------------------------------------------------
prismals
Language Server for the Prisma JavaScript and TypeScript ORM