@@ -11,8 +11,9 @@ several editors.
11
11
## Neovim
12
12
13
13
### Install the Server
14
- Download and extract the PowerShell Editor Services [ releases page] ( https://github.com/PowerShell/PowerShellEditorServices/releases )
15
- server to a directory of your choice. Remember the path that you extract the
14
+ Download and extract the PowerShell Editor Services server from the
15
+ [ releases page] ( https://github.com/PowerShell/PowerShellEditorServices/releases )
16
+ into a directory of your choice. Remember the path that you extract the
16
17
project into.
17
18
``` powershell
18
19
$DownloadUrl = 'https://github.com/PowerShell/PowerShellEditorServices/releases/latest/download/PowerShellEditorServices.zip';
@@ -25,15 +26,15 @@ Expand-Archive -Path $ZipPath -DestinationPath $InstallPath;
25
26
### Install Neovim's Basic LSP Configurations
26
27
Neovim has a repository of basic LSP configurations for a number of languages,
27
28
including PowerShell. Install the LSP configuration into one of the package
28
- directories inside ` $XDG_CONFIG_HOME ` . The path `$XDG_CONFIG_HOME will vary
29
+ directories inside ` $XDG_CONFIG_HOME ` . The path ` $XDG_CONFIG_HOME ` will vary
29
30
depending on which operating system you are on:
30
31
31
32
| OS | Path |
32
33
| ---------- | -------------------------- |
33
34
| Windows | ` $HOME/AppData/local/nvim ` |
34
35
| * nix/macOS | ` $HOME/.config/nvim ` |
35
36
36
- The easiest way is to install the configuration is to clone the repository
37
+ The easiest way is to install the LSP configuration is to clone the repository
37
38
using git:
38
39
``` powershell
39
40
git clone https://github.com/neovim/nvim-lspconfig.git "$HOME/AppData/local/nvim/pack/complete/start/nvim-lspconfig"
@@ -49,12 +50,12 @@ Expand-Archive -Path $ZipPath -DestinationPath $InstallPath;
49
50
```
50
51
51
52
> NOTE: If the corresponding neovim configuration and package directories have
52
- > not been created yet, create them before cloning the LSP configuration
53
+ > not been created yet, create them before installing the LSP configuration
53
54
> repository.
54
55
55
56
### Configure the Server
56
- Once the basic language configurations have been installed, you should add this
57
- to your init.lua:
57
+ Once the basic language configurations have been installed, add this to your
58
+ init.lua:
58
59
``` lua
59
60
local on_attach = function (client , bufnr )
60
61
-- Enable completion triggered by <c-x><c-o>
0 commit comments