-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] lsp actions preview #944
Comments
It’s a legacy provider that currently only calls the
IMHO the beneift here is pretty minimal and based on my previous work with code actions the maintenance overhead is bigger than just implementing this, every LSP has its own quirks (jdtls, etc) which can complicate things so I opted against implementing this myself. If you wish to implement this yourself and submit a PR I’ll gladly accept it. |
I could submit a pr, but obviously it may bring many break changes. You know, I just want a simple point. So I submit an issue rather than pr |
It won’t bring breaking changes, a previewer is an addition which can always be disabled/hidden by default, if you wish to PR this we can work on it together. |
@jqhr, don’t worry about if if you don’t feel Ike submitting a PR, I’ll do it myself when I get some free time. |
2 new previewers for code actions of type `edit` (diff): - "codeaction" is the default which displays the diff in the "builtin" neovim previewer - "codeaction_native" uses fzf's native preview ability and is recommended when git-delta is installed, by default will auto-detect the `delta` binary and set as the preview pager Try with `:FzfLua lsp_code_actions previewer=codeaction_native` Special thanks to @aznhe21 for the diff generation code which I borrowed from `actions-preview.nvim` plugin: https://github.com/aznhe21/actions-preview.nvim
Great! |
This is very nice indeed! I just tweaked my config and I'm quite happy with the result :) In case anyone wants to use it as inspiration, here is the commit where I added this to my dotfiles! |
Looks great @MariaSolOs! |
- Configure fzf-lua's lsp_code_actions previewer (ibhagwan/fzf-lua#944) with some reasonable default settings (uses git-delta native previewer and the vertical layout for previewing diff) - LSP keymap `<leader>ca` and buffer-local command `:CodeActions` now execute `fzf-lua.lsp_code_actions()`
Awesome work @ibhagwan ! and thanks for the inpsiration @MariaSolOs :) |
Very cool color scheme / setup @mikesmithgh :) |
Like actions-preview.nvim,
But this plugin only support telescope.
FzfLua has its own lsp code action provider.
Why not provide preview for code action?
The text was updated successfully, but these errors were encountered: