Closed nhussein11 closed 5 months ago
Did you try this? This overrides default behavior of having to use <C-c>o
to edit inside of the float. For me, using this override means o
takes me to definition.
Yes, however idk why when I press <C-c>
I get that line erased before even being able to press o
Adding the following statement solved the problem for me:
require("lspsaga").setup({
definition = {
keys = {
edit = 'o'
}
}
})
I had an issue with the configuration of my keyboard though, that's why this answer wasn't working.
Many thanks @winter-again !
Bug description
I have the following setup for lsp saga:
I can effectively open a popup that shows a definition usinggd, but when I want to maximize that popup in the current pane using the 'o' key, it automatically jumps to a new line under my cursor in insert mode. I've also tried oand many other alternatives.
Is there any way to set the behavior of the 'o' key only for that popup?
Steps to reproduce
o
orO
, trying to open up the pop up and have it completely maximized in your current pane. There you will see that the only thing that will happen would be that your cursor will create a new line up/down your current lineExpected behavior
Have peek definition pop up completely maximized in your current pane
Neovim version (nvim -v)
0.9.5
lspsaga commit
2198c07124bef27ef81335be511c8abfd75db933
Terminal name/version
warp