Skip to content
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

feat(lsp): add actions-preview.nvim plugin #855

Merged
merged 3 commits into from
Apr 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lua/astrocommunity/lsp/actions-preview-nvim/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Actions Preview

Fully customizable previewer for LSP code actions.

**Repository:** <https://github.com/aznhe21/actions-preview.nvim>
30 changes: 30 additions & 0 deletions lua/astrocommunity/lsp/actions-preview-nvim/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---@type LazySpec
return {
"aznhe21/actions-preview.nvim",
lazy = true,
dependencies = {
"nvim-telescope/telescope.nvim",
{
"AstroNvim/astrolsp",
---@type AstroLSPOpts
opts = {
mappings = {
n = {
["<Leader>la"] = {
function() require("actions-preview").code_actions() end,
desc = "LSP code action",
cond = "testDocument/codeAction",
},
},
v = {
["<Leader>la"] = {
function() require("actions-preview").code_actions() end,
desc = "LSP code action",
cond = "testDocument/codeAction",
},
},
},
},
},
},
}
Loading