diff options
| author | Geet Sethi <[email protected]> | 2021-07-31 19:14:08 +0530 | 
|---|---|---|
| committer | GitHub <[email protected]> | 2021-07-31 13:44:08 +0000 | 
| commit | cf16a2e826774e89d1bfe5812b6f73c3dd049db2 (patch) | |
| tree | 863859063ddc4615a8ac0b81c6f38604dea8c9e7 /lua/core | |
| parent | 8157f50d1308f42f3db1c7f69c226eb2e5c0b796 (diff) | |
Add the better peek functions (#1172)
Diffstat (limited to 'lua/core')
| -rw-r--r-- | lua/core/which-key.lua | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/lua/core/which-key.lua b/lua/core/which-key.lua index 595e076e..17995e87 100644 --- a/lua/core/which-key.lua +++ b/lua/core/which-key.lua @@ -152,6 +152,12 @@ M.config = function()            "<cmd>lua vim.lsp.diagnostic.goto_prev({popup_opts = {border = lvim.lsp.popup_border}})<cr>",            "Prev Diagnostic",          }, +        p = { +          name = "Peek", +          d = { "<cmd>lua require('lsp.peek').Peek('definition')<cr>", "Definition" }, +          t = { "<cmd>lua require('lsp.peek').Peek('typeDefinition')<cr>", "Type Definition" }, +          i = { "<cmd>lua require('lsp.peek').Peek('implementation')<cr>", "Implementation" }, +        },          q = { "<cmd>Telescope quickfix<cr>", "Quickfix" },          r = { "<cmd>lua vim.lsp.buf.rename()<cr>", "Rename" },          s = { "<cmd>Telescope lsp_document_symbols<cr>", "Document Symbols" }, | 
