{ keymaps = [ # chad tree { mode = "n"; action = "CHADopen"; key = "e"; options = { desc = "Open ChadTree"; }; } # barbar.nvim { mode = "n"; action = "BufferNext"; key = ""; options = { desc = "Next buffer"; }; } { mode = "n"; action = "BufferPrevious"; key = ""; options = { desc = "Previous buffer"; }; } /* { mode = "n"; action = "BufferMovePrevious"; key = "H"; options = { desc = "Move buffer to left"; }; } { mode = "n"; action = "BufferMoveNext"; key = "L"; options = { desc = "Move buffer to right"; }; } */ { mode = "n"; action = "BufferClose"; key = "q"; options = { desc = "Close buffer"; }; } { mode = "n"; action = "BufferOrderByName"; key = "sn"; options = { desc = "Sort buffer tabs by name"; }; } # grug.nvim { mode = "n"; action = "GrugFar"; key = "cr"; } # lazygit { mode = "n"; action = "LazyGit"; key = "gg"; options = { desc = "Open lazygit"; }; } # nvim-dap { mode = "n"; action = { __raw = "function() require('dap').continue() end"; }; key = "dd"; options = { desc = "Start debugging session"; }; } { mode = "n"; action = { __raw = "function() require('dap').toggle_breakpoint() end"; }; key = "ds"; options = { desc = "Set breakpoint"; }; } # toggleterm.nvim { mode = "n"; action = "ToggleTerm size=40 direction=vertical"; key = "ft"; options = { desc = "Toggle terminal"; }; } # trouble.nvim { mode = "n"; action = "Trouble diagnostics toggle"; key = "xx"; options = { desc = "Diagnostics (Trouble)"; }; } { mode = "n"; action = "Trouble diagnostics toggle filter.buf=0"; key = "xX"; options = { desc = "Buffer Diagnostics (Trouble)"; }; } # vertical split { mode = "n"; action = "vsplit"; key = "|"; options = { desc = "Vertical Split"; }; } ]; plugins.fzf-lua.keymaps = { "/" = "live_grep"; "" = "files"; "gf" = "git_files"; "," = "buffers"; }; lsp.keymaps = [ { key = "gd"; lspBufAction = "definition"; } { key = "gD"; lspBufAction = "references"; } { key = "gt"; lspBufAction = "type_definition"; } { key = "gi"; lspBufAction = "implementation"; } { key = "K"; lspBufAction = "hover"; } ]; }