Skip to content

Commit 50cf471

Browse files
authored
docs: document vim.pack as preferred installation method #4364
* docs: document `vim.pack` as preferred installation method Nvim 0.12 is not nightly anymore. * docs: replace deprecated `set_log_level` with `vim.lsp.log.set_level`
1 parent 16812ab commit 50cf471

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,16 @@ These configs are **best-effort and supported by the community (you).** See [con
3232

3333
* Requires Nvim 0.11.3+.
3434
* Support for Nvim 0.10 [will be removed](https://github.com/neovim/nvim-lspconfig/issues/3693). Upgrade Nvim and nvim-lspconfig before reporting an issue.
35-
* Install nvim-lspconfig using Vim's "packages" feature:
36-
```
37-
git clone https://github.com/neovim/nvim-lspconfig ~/.config/nvim/pack/nvim/start/nvim-lspconfig
38-
```
39-
* Or with Nvim 0.12 (nightly), you can use the builtin `vim.pack` plugin manager:
35+
* With Nvim 0.12+, you can use the builtin `vim.pack` plugin manager:
4036
```lua
4137
vim.pack.add{
4238
{ src = 'https://github.com/neovim/nvim-lspconfig' },
4339
}
4440
```
41+
* Or install nvim-lspconfig using Vim's "packages" feature:
42+
```
43+
git clone https://github.com/neovim/nvim-lspconfig ~/.config/nvim/pack/nvim/start/nvim-lspconfig
44+
```
4545
* Or use a 3rd-party plugin manager.
4646

4747
## Quickstart
@@ -194,7 +194,7 @@ If you found a bug with LSP functionality, [report it to Neovim core](https://gi
194194
Before reporting a bug, check your logs and the output of `:checkhealth vim.lsp`. Add this to your init.lua to enable verbose logging:
195195

196196
```lua
197-
vim.lsp.set_log_level("debug")
197+
vim.lsp.log.set_level('debug')
198198
```
199199

200200
Attempt to run the language server, then run `:LspLog` to open the log.

0 commit comments

Comments
 (0)