mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-02-04 16:41:43 +05:30
refactor(nvim): Keymap updates for git, symbol search & save/quit
- Treesitter: `]a` -> next arg, `[a` -> previous arg, `]T` -> next test - git: Revert Previous & next hunks to `]g` & `[g` - git: Remove `<space>gK` for hover blame-line: use `<space>gL` instead - save: Save all files with `<C-s>`, - exit: Quit without saving with `<C-q>`: won't exit with unsaved files: sometime you don't want to save files - Search symbols with `<space>s` & `<space>S` instead of `<space>cs` & `<space>cS`
This commit is contained in:
@@ -74,8 +74,8 @@ vim.api.nvim_create_autocmd("LspAttach", {
|
||||
|
||||
-- Telescope
|
||||
map("gI", require("telescope.builtin").lsp_implementations, "[G]oto [I]mplementation")
|
||||
map("<leader>cs", require("telescope.builtin").lsp_document_symbols, "Search Document Symbols")
|
||||
map("<leader>cS", require("telescope.builtin").lsp_workspace_symbols, "Search Workspace Symbols")
|
||||
map("<leader>s", require("telescope.builtin").lsp_document_symbols, "Search Document Symbols")
|
||||
map("<leader>S", require("telescope.builtin").lsp_workspace_symbols, "Search Workspace Symbols")
|
||||
map("<leader>ct", require("telescope.builtin").lsp_type_definitions, "Goto Type Definition")
|
||||
|
||||
Snacks.toggle({
|
||||
|
||||
Reference in New Issue
Block a user