Update Neovim config examples to use vim.lsp.config#24577
Merged
dhruvmanila merged 5 commits intoastral-sh:mainfrom Apr 13, 2026
Merged
Update Neovim config examples to use vim.lsp.config#24577dhruvmanila merged 5 commits intoastral-sh:mainfrom
vim.lsp.config#24577dhruvmanila merged 5 commits intoastral-sh:mainfrom
Conversation
Updated Neovim setup instructions for Ruff Language Server to clarify usage with built-in LSP client and nvim-lspconfig for different Neovim versions.
Updated configuration for the Ruff language server in Neovim to include additional root markers.
Corrected formatting of links in Neovim setup documentation.
vim.lsp.config
dhruvmanila
approved these changes
Apr 13, 2026
This was referenced Apr 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Neovim 0.11 (in March 2025) added vim.lsp.config() which is now the recommended way to set up language servers. This was added to the Ruff docs in #18108 in addition to the legacy method using
nvim-lspconfig.Calling
nvim-lspconfigto configure a language server is deprecated - see their documentation.This PR:
vim.lsp.configvim.lsp.config.Test Plan
I have tested a subset of the examples locally using Neovim 0.12.1.
I considered just removing the legacy method but was unsure. I'll follow others' guidance on when that should be kept until.
Screen.Recording.2026-04-13.at.13.09.19.mov