Skip to content

fix: replace deprecated vim.lsp.buf_get_clients() with vim.lsp.get_clients()#132

Open
gvtret wants to merge 1 commit into
leoluz:mainfrom
gvtret:fix/deprecated-buf-get-clients
Open

fix: replace deprecated vim.lsp.buf_get_clients() with vim.lsp.get_clients()#132
gvtret wants to merge 1 commit into
leoluz:mainfrom
gvtret:fix/deprecated-buf-get-clients

Conversation

@gvtret
Copy link
Copy Markdown

@gvtret gvtret commented May 14, 2026

Summary

vim.lsp.buf_get_clients() is deprecated in Neovim 0.10+ and produces a warning on startup:

vim.lsp.buf_get_clients() is deprecated. Run ":checkhealth vim.deprecated" for more information

Replace with vim.lsp.get_clients({ bufnr = 0 }) which is the current API.

Changes

  • lua/dap-go-ts.lua: replace vim.lsp.buf_get_clients() with vim.lsp.get_clients({ bufnr = 0 })

…ients()

vim.lsp.buf_get_clients() is deprecated in Neovim 0.10+ and removed in
0.11+. Replace with vim.lsp.get_clients({ bufnr = 0 }) which is the
current API.
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.

1 participant