1 line
1.6 KiB
Plaintext
1 line
1.6 KiB
Plaintext
<!-- SC_OFF --><div class="md"><p>Hello, I have just started using lsp and i find it difficult to customize some aspects of it. One of it being lsp sideline, which quite annoyingly i cant force to hide from the buffer, but retain the option to still invoke the actions in the context of the curent symbol. </p> <p>I wanted to disable the hideous wall of text next to the code that was showing actions and diagnostics, and simply use lsp-ui-sideline-apply-code-actions to see them in the minibuffer or a side display buffer/window. I was able to hide the text but not able to make list of available actions for a symbol show, with the config below, lsp-ui-sideline-apply-code-actions says - No code actions on the current line. While using lsp-execute-code-action shows the list of all actions not just the ones available for the symbol (in the context of the current symbol, while it works fine when lsp-ui-sideline-show-code-actions t) which is quite bad. I just can't understand why there is no way to hide just the actions as text in the work buffer while retaining the ability to fetch the relevant actions on demand only. </p> <pre><code>lsp-ui-sideline-enable t lsp-ui-sideline-show-hover nil lsp-ui-sideline-show-symbol nil lsp-ui-sideline-show-diagnostics nil lsp-ui-sideline-show-code-actions nil </code></pre> </div><!-- SC_ON -->   submitted by   <a href="https://www.reddit.com/user/asmodeus812"> /u/asmodeus812 </a> <br/> <span><a href="https://www.reddit.com/r/emacs/comments/r68y6c/lsp_ui_sideline/">[link]</a></span>   <span><a href="https://www.reddit.com/r/emacs/comments/r68y6c/lsp_ui_sideline/">[comments]</a></span> |