nvimdev / lspsaga.nvim

improve neovim lsp experience
MIT License
3.41k stars 287 forks source link

refactor(codeaction): border margin handling + CodeActionCursorLine highlight #1414

Closed dmun closed 4 months ago

dmun commented 5 months ago

I changed the hard coded margin between preview and code actions to make it 0 whenever ui.border == 'none'.

I also made a code_action.cursorline option defaulting to true. This feels like a more sane default since it's more of a 'completion-like' UI.

Let me know if you think it's okay, I will then update docs and other things if required!

Before without borders

https://github.com/nvimdev/lspsaga.nvim/assets/39461169/63bc31f7-1a94-4e80-8654-a9e4f3a45000

After without borders

https://github.com/nvimdev/lspsaga.nvim/assets/39461169/465ea5c4-927e-4eda-af84-85d6f1bb8249

After with borders (and default highlights)

https://github.com/nvimdev/lspsaga.nvim/assets/39461169/7460e32c-83d2-4e70-af49-e48a1b48fef6

glepnir commented 4 months ago

maybe can give curosrline a new highlght it's better than CursorLine i guess. I will try add it in next verison. for now looks good. thanks