mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-08-29 14:28:18 +02:00
[Feature] better code action prompt and auto show codelens actions (#1698)
This commit is contained in:
parent
5fe7b7ad4d
commit
0ad60e90a9
4 changed files with 43 additions and 1 deletions
|
@ -139,7 +139,7 @@ M.config = function()
|
|||
|
||||
l = {
|
||||
name = "LSP",
|
||||
a = { "<cmd>lua vim.lsp.buf.code_action()<cr>", "Code Action" },
|
||||
a = { "<cmd>lua require('core.telescope').code_actions()<cr>", "Code Action" },
|
||||
d = {
|
||||
"<cmd>Telescope lsp_document_diagnostics<cr>",
|
||||
"Document Diagnostics",
|
||||
|
@ -159,6 +159,7 @@ M.config = function()
|
|||
"<cmd>lua vim.lsp.diagnostic.goto_prev({popup_opts = {border = lvim.lsp.popup_border}})<cr>",
|
||||
"Prev Diagnostic",
|
||||
},
|
||||
l = { "<cmd>lua vim.lsp.codelens.run()<cr>", "CodeLens Action" },
|
||||
p = {
|
||||
name = "Peek",
|
||||
d = { "<cmd>lua require('lsp.peek').Peek('definition')<cr>", "Definition" },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue