kmontocam / nvim-conda

Implementation of the conda package manager inside Neovim. Activate environments easily, update LSPs and more.
Apache License 2.0
44 stars 3 forks source link

[BUG] `:CondaActivate` only works under certain circumstances #19

Open FilouPlains opened 1 month ago

FilouPlains commented 1 month ago

[BUG] :CondaActivate only works under certain circumstances

I'll try to be concise and precise as possible. If there is any information lacking, please do not hesitate to ask!

Bug description

When launching :CondaActivate, in certain cases, it does not work. And in other, it does. For instance:

Environment description

Error message

Error executing vim.schedule lua callback: /snap/nvim/2823/usr/share/nvim/runtime/lua/vim/lsp.lua:374: Error executing lua: vim/keymap.lua:0: E31: No such mapping                             
stack traceback:                                                                                                                                                                               
        [C]: in function 'nvim_buf_del_keymap'                                                                                                                                                 
        vim/keymap.lua: in function 'del'                                                                                                                                                      
        /snap/nvim/2823/usr/share/nvim/runtime/lua/vim/lsp.lua:377: in function </snap/nvim/2823/usr/share/nvim/runtime/lua/vim/lsp.lua:374>                                                   
        [C]: in function 'nvim_buf_call'                                                                                                                                                       
        /snap/nvim/2823/usr/share/nvim/runtime/lua/vim/lsp.lua:374: in function 'reset_defaults'                                                                                               
        /snap/nvim/2823/usr/share/nvim/runtime/lua/vim/lsp.lua:403: in function </snap/nvim/2823/usr/share/nvim/runtime/lua/vim/lsp.lua:389>                                                   
stack traceback:                                                                                                                                                                               
        [C]: in function 'nvim_buf_call'                                                                                                                                                       
        /snap/nvim/2823/usr/share/nvim/runtime/lua/vim/lsp.lua:374: in function 'reset_defaults'                                                                                               
        /snap/nvim/2823/usr/share/nvim/runtime/lua/vim/lsp.lua:403: in function </snap/nvim/2823/usr/share/nvim/runtime/lua/vim/lsp.lua:389>                                                   
kmontocam commented 1 month ago

It surprises me that sometimes it works with a NeoTree window open?

I am guessing the problem is between your LSP Setup and Miniconda, I will have a look to see can be wrong