actions-preview
This commit is contained in:
parent
99f5ed48b8
commit
967da5ad93
4 changed files with 28 additions and 1 deletions
|
@ -51,7 +51,14 @@ return {
|
|||
map("gr", require("telescope.builtin").lsp_references, "Goto References")
|
||||
map("gI", require("telescope.builtin").lsp_implementations, "Goto Implementation")
|
||||
map("<leader>lr", vim.lsp.buf.rename, "Rename")
|
||||
map("<leader>la", vim.lsp.buf.code_action, "Code Action")
|
||||
-- map("<leader>la", vim.lsp.buf.code_action, "Code Action")
|
||||
map("<leader>la", function()
|
||||
U.safeRequire("actions-preview", function()
|
||||
require("actions-preview").code_actions()
|
||||
end, function()
|
||||
vim.lsp.buf.code_action()
|
||||
end)
|
||||
end, "Code Action")
|
||||
map("K", vim.lsp.buf.hover, "Hover Documentation")
|
||||
map("gD", vim.lsp.buf.declaration, "Goto Declaration")
|
||||
end,
|
||||
|
|
|
@ -4,6 +4,7 @@ return {
|
|||
{ "nvim-lua/plenary.nvim" },
|
||||
{ "nvim-telescope/telescope-fzf-native.nvim", event = "VeryLazy" },
|
||||
{ "nvim-telescope/telescope-ui-select.nvim", event = "VeryLazy" },
|
||||
{ "aznhe21/actions-preview.nvim", event = "VeryLazy" },
|
||||
},
|
||||
init = function()
|
||||
U.cmd_executable("rg", {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue