sideline-lsp
Show lsp information with sideline
P.S. The implementation is extracted and modified from lsp-ui-sideline 's code action.
Table of Contents
๐จ Quickstart
(use-package sideline
:init
(setq sideline-backends-right '(sideline-lsp)))
(use-package lsp-mode :hook (lsp-mode . sideline-mode)) ; enable it when lsp is on
(use-package lsp-ui :init (setq lsp-ui-sideline-enable nil)) ; disable original sideline
๐ง Customization
๐งช Variables
sideline-lsp-update-mode
- When set to 'line' the information will be updated when user changes current line otherwise the information will be updated when user changes current pointsideline-lsp-ignore-duplicate
- Ignore duplicate code actionssideline-lsp-code-actions-prefix
- Prefix to insert before the code action title.
๐งช Face
sideline-lsp-code-action
- Face used to highlight code action text.
๐ฅ Replace lsp-ui-sideline
(setq lsp-ui-sideline-enable nil) ; disable lsp-ui-sideline
Customize backends according to your options:
lsp-ui-sideline-show-code-actions
- addsideline-lsp
lsp-ui-sideline-show-diagnostics
- addsideline-flycheck
Hence, you should
(setq sideline-backends-right '(sideline-lsp sideline-flycheck))
Contribute
If you would like to contribute to this project, you may either clone and make pull requests to this repository. Or you can clone the project and establish your own branch of this tool. Any methods are welcome!