Skip to content
This repository has been archived by the owner on Aug 11, 2024. It is now read-only.

Codelens support #53

Open
shinzui opened this issue Dec 26, 2021 · 1 comment
Open

Codelens support #53

shinzui opened this issue Dec 26, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@shinzui
Copy link

shinzui commented Dec 26, 2021

Is your feature request related to a problem? Please describe.
It would be nice to support codelens actions.

Describe the solution you'd like

Support displaying codelenses in virtual text and a way to run the code lens actions.

@shinzui shinzui added the enhancement New feature or request label Dec 26, 2021
@kkharji
Copy link
Owner

kkharji commented Dec 26, 2021

For the display of codelens, I have vim.lsp.codelens.refresh() on lsp attach function. Though, we might endup with better user experience if it got manged by lspsaga

For supporting code lens actions, I had tried to tackle this before and merge both code actions and codelens in one command because it makes sense. https://github.com/simrat39/rust-tools.nvim/pull/84/files.

It's fairly easy to port it here because that PR still uses lspsaga api. However, I won't be able to do that anytime soon, let alone completing the PR (@simrat39 the next rust project I work on, I'll test, resolve conflicts and remove lspsaga api ).

@shinzui feel free to contribute.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants