uga-rosa / ddu-source-lsp

Ddu source for lsp.
MIT License
21 stars 6 forks source link

vim.lsp.get_active_clients() is deprecated in Neovim v0.11.0 #35

Closed kyoh86 closed 6 months ago

kyoh86 commented 6 months ago

https://github.com/uga-rosa/ddu-source-lsp/blob/main/lua/ddu_nvim_lsp.lua#L11

vim.lsp.get_active_clients() is deprecated, use vim.lsp.get_clients() instead. :help deprecated
Feature will be removed in Nvim 0.12
stack traceback:
    /usr/local/share/nvim/runtime/lua/vim/lsp.lua:785: in function 'get_active_clients'
    ...ocal/share/nvim/lazy/ddu-source-lsp/lua/ddu_nvim_lsp.lua:11: in function 'get_client_by_bufnr'
    [string "luaeval()"]:1: in main chunk

Neovim version:

:version:
NVIM v0.11.0-dev-62eb7e7
Build type: Release
LuaJIT 2.1.1713484068
Run ":verbose version" for more info
uga-rosa commented 6 months ago

fixed. please check

kyoh86 commented 6 months ago

@uga-rosa thanks!