-
-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(lsp): add
actions-preview.nvim
plugin (#855)
* feat(lsp): add `actions-preview.nvim` plugin * feat(actions-preview-nvim): Lazy load plugin Co-authored-by: Micah Halter <micah@mehalter.com> * refactor(actions-preview-nvim): made mapping smaller --------- Co-authored-by: Uzair Aftab <48220549+Uzaaft@users.noreply.github.com> Co-authored-by: Micah Halter <micah@mehalter.com>
- Loading branch information
1 parent
1d41ad0
commit 3f64ba3
Showing
2 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
} |