@@ -57,7 +57,7 @@ Expand-Archive -Path $ZipPath -DestinationPath $InstallPath;
57
57
58
58
#### Setup Keybindings and Path Information
59
59
Once the basic language configurations have been installed, add this to your
60
- init.lua:
60
+ init.lua located in ` $XDG_CONFIG_HOME ` :
61
61
``` lua
62
62
local on_attach = function (client , bufnr )
63
63
-- Enable completion triggered by <c-x><c-o>
@@ -93,6 +93,14 @@ require('lspconfig')['powershell_es'].setup {
93
93
> NOTE: Be sure to set the bundle_path variable to the correct location,
94
94
> otherwise the server will not know the path to start the server.
95
95
96
+ If you use an ` init.vim ` file, you may put the keybinding and path configuration
97
+ in your ` init.vim ` with the ` lua ` heredoc syntax instead.
98
+ ``` vim
99
+ lua << EOF
100
+ -- lua keybindings and path configuration here
101
+ EOF
102
+ ```
103
+
96
104
#### Configure Additional Settings
97
105
To further configure the server, you can supply settings to the setup table.
98
106
For example, you can set the code formatting preset to one true brace style
@@ -105,8 +113,7 @@ require('lspconfig')['powershell_es'].setup {
105
113
}
106
114
```
107
115
108
- As another example, you can set the bundled PSScriptAnalyzer's custom rule path
109
- like so:
116
+ You can also set the bundled PSScriptAnalyzer's custom rule path like so:
110
117
``` lua
111
118
local custom_settings_path = home_directory .. ' /PSScriptAnalyzerSettings.psd1'
112
119
require (' lspconfig' )[' powershell_es' ].setup {
0 commit comments