emacs-lsp / lsp-ui

UI integrations for lsp-mode
https://emacs-lsp.github.io/lsp-ui
GNU General Public License v3.0
1.03k stars 141 forks source link

Hiding Lsp UI Sideline but retaining actions #667

Open asmodeus812 opened 2 years ago

asmodeus812 commented 2 years ago

am just starting to explore the LSP configuration options. But i am facing very annoying problem with lsp-ui-sideline. I like the options that it provides but hate that it shows up right next to my code. So i wanted to disable the sideline showing in the buffer when you hover with cursor automatically but still be able to bind actions to keybinds. This is where my problem starts - i have tried the following options

While the sideline/actions are no longer visible i can not evaluate them anymore in the minibuffer, when i execute lsp-ui-sideline-apply-code-actions it shows No actions available for this line. While if i have lsp-ui-sideline-enable or lsp-ui-sideline-show-code-actions enabled it works fine. I would expect that to not be the case otherwise i can not hide the hideous walls of text in the buffer which are very distracting. Any help will be appreciated ! Thanks

vjohansen commented 2 months ago

Re-enable the actions and just set face lsp-ui-sideline-code-action to something similar to your background color