lspsaga.nvim
lspsaga.nvim copied to clipboard
lsp_finder shows Invalid buffer id error message
Describe the bug
Hello!
I want to report a bug for Lspsaga lsp_finder
I got Invalid buffer number error , this error probably starting in 7 days (I don't remember when the first time is)
Thanks for reading
E5108: Error executing lua: ...ocal/share/nvim/lazy/lspsaga.nvim/lua/lspsaga/finder.lua:884: Invalid buffer id: 11
stack traceback:
[C]: in function 'nvim_win_set_buf'
...ocal/share/nvim/lazy/lspsaga.nvim/lua/lspsaga/finder.lua:884: in function 'do_action'
...ocal/share/nvim/lazy/lspsaga.nvim/lua/lspsaga/finder.lua:553: in function <...ocal/share/nvim/lazy/lspsaga.nvim/lua/lspsaga/finder.lua:547>
My config
setup
lspsaga.setup({
symbol_in_winbar = {
enable = false,
},
finder = {
max_height = 0.5,
keys = {
jump_to = "p",
edit = { "o", "<CR>" },
vsplit = "<c-v>",
split = { "i", "<c-x>" },
tabe = { "t", "<c-t>" },
quit = { "q", "<ESC>" },
close_in_preview = "<ESC>",
},
},
})
keymaps
-- Diagnostic
vim.keymap.set("n", "<leader>do", "<Cmd>Lspsaga show_line_diagnostics<CR>")
vim.keymap.set(("n", "<leader>dp", "<Cmd>Lspsaga diagnostic_jump_prev<CR>")
vim.keymap.set(("n", "<leader>dn", "<Cmd>Lspsaga diagnostic_jump_next<CR>")
-- Definition
vim.keymap.set(("n", "<leader>gd", "<Cmd>Lspsaga lsp_finder<CR>")
vim.keymap.set(("n", "<leader>pd", "<Cmd>Lspsaga peek_definition<CR>")
-- See `:help K` for why this keymap
vim.keymap.set(("n", "K", "<Cmd>Lspsaga hover_doc<CR>")
Steps to reproduce
-
:Lspsaga lsp_finder -
then choose one from References
-
error message appears
https://user-images.githubusercontent.com/61320923/228283751-9dccac05-5bfa-4fcc-91cc-5c35e0007df2.mov
Expected behavior
Language: typescript
-
:Lspsaga lsp_finder -
then choose one from References
-
go to the code
(when select import code, no error)
https://user-images.githubusercontent.com/61320923/228284164-36f78bd5-eb6b-4838-9528-0773e51cd051.mov
Neovim version (nvim -v)
0.8.2
lspsaga commit
6b055c60214208b4fee49344b88da22e7cff2fb9
Terminal name/version
Alacritty/0.11.0