Skip to content

Conversation

@veigaribo
Copy link
Contributor

Neovim 0.11 introduced the vim.lsp.config function for configuring LSP clients1, and so the nvim-lspconfig became just a repository for LSP configuration, deprecating everything else2. I thus updated the Neovim examples to invoke vim.lsp.config instead of the deprecated require'lspconfig'.….setup{}. I also removed references from lspconfig since 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 = true to cargo.features = "all" since that is also the new way of doing it34. This change could probably be applied to the other examples as well.

  1. https://neovim.io/doc/user/news-0.11.html
  2. https://github.com/neovim/nvim-lspconfig?tab=readme-ov-file#important-%EF%B8%8F
  3. Config revamp rust-lang/rust-analyzer#12010
  4. https://rust-analyzer.github.io/book/configuration.html#cargo.features

@benwis
Copy link
Contributor

benwis commented Aug 22, 2025

Tricky! I appreciate the PR and the links. Things have certainly changed some in neovim

@benwis benwis merged commit 7b4c005 into leptos-rs:main Aug 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants