Skip to content

Commit

Permalink
feat: add peek type definniton keymap
Browse files Browse the repository at this point in the history
  • Loading branch information
BBboy01 committed Dec 12, 2023
1 parent 0465971 commit 0b09a11
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lazy-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"gitsigns.nvim": { "branch": "main", "commit": "6e05045fb1a4845fe44f5c54aafe024444c422ba" },
"indentmini.nvim": { "branch": "main", "commit": "a58129ae424fd6d8e0e2e7f6ce06c0443101e370" },
"lazy.nvim": { "branch": "main", "commit": "96584866b9c5e998cbae300594d0ccfd0c464627" },
"lspsaga.nvim": { "branch": "main", "commit": "68d42e24295b4254fdf82a8a686fcf951f8a8d9a" },
"lspsaga.nvim": { "branch": "main", "commit": "335805d4f591f5bb71cabb6aa4dc58ccef8e8617" },
"lualine.nvim": { "branch": "master", "commit": "2248ef254d0a1488a72041cfb45ca9caada6d994" },
"mini.ai": { "branch": "main", "commit": "c28f7d7348f27425a180b1b7dcaa77651f8b71ee" },
"mini.comment": { "branch": "main", "commit": "3d9c8009615857e982f09bc5357fc95f2a2175f3" },
Expand All @@ -27,7 +27,7 @@
"nvim-cmp": { "branch": "main", "commit": "41d7633e4146dce1072de32cea31ee31b056a131" },
"nvim-lspconfig": { "branch": "master", "commit": "bd405e45c5fb122c16af8f87fa2dd7ab1981b243" },
"nvim-tree.lua": { "branch": "master", "commit": "141c0f97c35f274031294267808ada59bb5fb08e" },
"nvim-treesitter": { "branch": "master", "commit": "b6b9ca448b7f236e2e60f8393a729902511f9db9" },
"nvim-treesitter": { "branch": "master", "commit": "a6c655629cad421e432aa84af32cbfe35375113a" },
"nvim-treesitter-textobjects": { "branch": "master", "commit": "ec1c5bdb3d87ac971749fa6c7dbc2b14884f1f6a" },
"nvim-ts-autotag": { "branch": "main", "commit": "8515e48a277a2f4947d91004d9aa92c29fdc5e18" },
"nvim-ts-context-commentstring": { "branch": "main", "commit": "1277b4a1f451b0f18c0790e1a7f12e1e5fdebfee" },
Expand Down
2 changes: 1 addition & 1 deletion lua/config/keymaps.lua
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ keymap.set('n', 's<up>', '<C-w>+', { desc = 'Increase window height' })
keymap.set('n', 's<down>', '<C-w>-', { desc = 'Decrease window height' })

-- Save & Close buffer
keymap.set('n', 'sw', '<Cmd>qw<CR>', { desc = 'Save and Close current buffer' })
keymap.set('n', 'sw', '<Cmd>wq<CR>', { desc = 'Save and Close current buffer' })
keymap.set({ 'i', 'x', 'n', 's' }, '<C-s>', '<Cmd>w<CR><Esc>', { desc = 'Save current buffer' })

-- Add undo break-points
Expand Down
3 changes: 2 additions & 1 deletion lua/plugins/lspsaga.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ return {
{ 'gt', '<Cmd>Lspsaga goto_type_definition<CR>', desc = 'Goto cursorword type definition' },
{ 'gh', '<Cmd>Lspsaga hover_doc<CR>', desc = 'Show cursorword doc' },
{ 'gr', '<Cmd>Lspsaga finder<CR>', desc = 'Show cursorword finder' },
{ 'gp', '<Cmd>Lspsaga peek_definition<CR>', desc = 'Peek cursorword definition' },
{ 'gpt', '<Cmd>Lspsaga peek_type_definition<CR>', desc = 'Peek cursorword type definition' },
{ 'gpd', '<Cmd>Lspsaga peek_definition<CR>', desc = 'Peek cursorword definition' },
{ 'ga', '<Cmd>Lspsaga code_action<CR>', desc = 'Show code action' },
{ '<Leader>n', '<Cmd>Lspsaga rename<CR>', desc = 'Rename cursorword' },
},
Expand Down

0 comments on commit 0b09a11

Please sign in to comment.