Fix Neovim documentation #231
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Neovim 0.11 introduced the
vim.lsp.configfunction for configuring LSP clients1, and so thenvim-lspconfigbecame just a repository for LSP configuration, deprecating everything else2. I thus updated the Neovim examples to invokevim.lsp.configinstead of the deprecatedrequire'lspconfig'.….setup{}. I also removed references fromlspconfigsince it's technically not required anymore (or are we assuming the user does not know how to configure LSP in general?) and capitalized "neovim" to "Neovim" since that's how it's referred to in https://neovim.io/.I also changed the
cargo.allFeatures = truetocargo.features = "all"since that is also the new way of doing it34. This change could probably be applied to the other examples as well.