hedyhli / outline.nvim

Code outline sidebar powered by LSP. Significantly enhanced & refactored fork of symbols-outline.nvim.
https://sr.ht/~hedy/outline.nvim
MIT License
543 stars 15 forks source link

Deprecated warning when I first open the plugin #72

Closed drusmanbashir closed 2 months ago

drusmanbashir commented 2 months ago

Hi everytime I open this plugin in a new neovim session I get the below warning

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'                                                                                                   
        ...vim/lazy/outline.nvim/lua/outline/providers/nvim-lsp.lua:38: in function 'get_appropriate_client'                                                                                  
        ...vim/lazy/outline.nvim/lua/outline/providers/nvim-lsp.lua:62: in function 'supports_buffer'                                                                                         
        ...re/nvim/lazy/outline.nvim/lua/outline/providers/init.lua:16: in function 'find_provider'                                                                                           
        ...cal/share/nvim/lazy/outline.nvim/lua/outline/sidebar.lua:589: in function 'open_outline'                                                                                           
        ....local/share/nvim/lazy/outline.nvim/lua/outline/init.lua:89: in function 'fn'                                                                                                      
        ....local/share/nvim/lazy/outline.nvim/lua/outline/init.lua:249: in function <....local/share/nvim/lazy/outline.nvim/lua/outline/init.lua:240>                                        
Press ENTER or type command to continue                      

Screenshot from 2024-06-04 16-54-24

rockyzhang24 commented 2 months ago

It will be resolved once https://github.com/hedyhli/outline.nvim/pull/70 gets merged.

hedyhli commented 2 months ago

This should be fixed now.