aboutsummaryrefslogtreecommitdiffstats
path: root/doc/lspconfig.txt
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2025-09-17 23:30:24 -0400
committerGitHub <noreply@github.com>2025-09-17 20:30:24 -0700
commit1f7fbc34e6420476142b5cc85e9bee52717540fb (patch)
tree522a7211a104b20a65ee1e63871d1d25f8dd8520 /doc/lspconfig.txt
parentdocs: update configs.md (diff)
downloadnvim-lspconfig-1f7fbc34e6420476142b5cc85e9bee52717540fb.tar
nvim-lspconfig-1f7fbc34e6420476142b5cc85e9bee52717540fb.tar.gz
nvim-lspconfig-1f7fbc34e6420476142b5cc85e9bee52717540fb.tar.bz2
nvim-lspconfig-1f7fbc34e6420476142b5cc85e9bee52717540fb.tar.lz
nvim-lspconfig-1f7fbc34e6420476142b5cc85e9bee52717540fb.tar.xz
nvim-lspconfig-1f7fbc34e6420476142b5cc85e9bee52717540fb.tar.zst
nvim-lspconfig-1f7fbc34e6420476142b5cc85e9bee52717540fb.zip
refactor!: deprecate old framework/configs, Nvim 0.10 #4077
Diffstat (limited to 'doc/lspconfig.txt')
-rw-r--r--doc/lspconfig.txt35
1 files changed, 35 insertions, 0 deletions
diff --git a/doc/lspconfig.txt b/doc/lspconfig.txt
index 7dff0755..e086bfef 100644
--- a/doc/lspconfig.txt
+++ b/doc/lspconfig.txt
@@ -116,6 +116,41 @@ COMPLETION SUPPORT *lspconfig-completion*
See |lsp-completion|.
==============================================================================
+Migrate to vim.lsp.config *lspconfig-nvim-0.11*
+
+The "framework" part of nvim-lspconfig is DEPRECATED. The "configs" are NOT
+deprecated, but were moved to the lsp/ directory so that |vim.lsp.config()|
+automatically finds them.
+
+This means:
+- `require'lspconfig'[…]` must NOT be used. Use `vim.lsp.config(…)` instead.
+- The `require'lspconfig'` quasi-framework will be DELETED, and is not
+ supported in Nvim 0.11+.
+- The nvim-lspconfig configs (|lspconfig-all|) now live in "lsp/" instead of
+ "lua/lspconfig/".
+- To use the configs, call `vim.lsp.config(…)` instead of `require'lspconfig'[…]`.
+
+MIGRATION INSTRUCTIONS
+
+To migrate:
+- Upgrade to Nvim 0.11 or later.
+- Change `require'lspconfig'[…]` to `vim.lsp.config(…)`.
+ - Some field names changed, see |lspconfig-vs-vim.lsp.config|.
+ - See |lsp-config| for details.
+
+BACKGROUND
+
+Since Nvim 0.11, nvim-lspconfig provides configs in its "lsp/" directory. The
+old configs still exist in "lua/lspconfig/configs/" but are deprecated and
+will be DELETED.
+
+This means the "configs" role of nvim-lspconfig continues to be relevant, but
+it is now a "data-only" repository instead of a "framework". The only change
+needed from you, and from plugins, is to use the Nvim 0.11 `vim.lsp.config`
+interface to setup LSP configs instead of the old `require'lspconfig'`
+quasi-framework.
+
+==============================================================================
DEBUGGING AND TROUBLESHOOTING *lspconfig-debugging*
See |lsp-log| to enable verbose logs.