Skip to content

Commit 6bb322e

Browse files
Add more Vim troubleshooting (#2231)
* Update getting_started.md with colorscheme troubleshooting step * Update getting_started.md - Added troubleshooting for brackets after cmdlets when autocompleting * Update getting_started.md - Added link to reference with more additional settings --------- Co-authored-by: Andy Jordan <[email protected]>
1 parent d1223f7 commit 6bb322e

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

docs/guide/getting_started.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,15 @@ lua << EOF
101101
EOF
102102
```
103103

104+
#### Theme Troubleshooting
105+
If you find that your colorscheme appears correctly for a second and then
106+
changes to not having full highlighting, you'll need to disable semantic
107+
highlighting.
108+
Add this line to the `on_attach` function.
109+
```lua
110+
client.server_capabilities.semanticTokensProvider = nil
111+
```
112+
104113
#### Configure Additional Settings
105114
To further configure the server, you can supply settings to the setup table.
106115
For example, you can set the code formatting preset to one true brace style
@@ -112,6 +121,8 @@ require('lspconfig')['powershell_es'].setup {
112121
settings = { powershell = { codeFormatting = { Preset = 'OTBS' } } }
113122
}
114123
```
124+
For a more complete list of options have a look at this schema:
125+
[nvim-lsp-installer powershell_es reference](https://github.com/williamboman/nvim-lsp-installer/blob/main/lua/nvim-lsp-installer/_generated/schemas/powershell_es.lua)
115126

116127
You can also set the bundled PSScriptAnalyzer's custom rule path like so:
117128
```lua
@@ -123,6 +134,14 @@ require('lspconfig')['powershell_es'].setup {
123134
}
124135
```
125136

137+
#### Autocomplete Brackets Troubleshooting
138+
If you're using `blink.cmp` and you're getting brackets when autocompleting
139+
cmdlet names, you'll need to add `{ "ps1", "psm1" }` to the blocked filetypes
140+
for both `kind_resolution` and `semantic_token_resolution` in the plugin's
141+
config file.
142+
143+
[Blink.cmp completion reference](https://cmp.saghen.dev/configuration/reference#completion-accept)
144+
126145
### Indentation
127146

128147
Vim/Neovim does not contain default `:h indentexpr` for filetype `ps1`.

0 commit comments

Comments
 (0)