vim.keymap.set("i", "jk", "") vim.keymap.set("n", "l", "Lazy") vim.keymap.set("n", "m", "Mason") vim.keymap.set("n", "s", "Dashboard") vim.keymap.set("n", "z", "ZenMode") vim.keymap.set("n", "gf", "Neogit") vim.keymap.set("n", "gg", "Neogit kind=split") vim.keymap.set("n", "cc", "Neogit commit") vim.keymap.set("n", "gp", "Neogit kind=split pull") vim.keymap.set("n", "gP", "Neogit kind=split push") vim.keymap.set("n", "tt", "ToggleTerm direction=horizontal") vim.keymap.set({ "n", "t" }, "", "NavigatorLeft") vim.keymap.set({ "n", "t" }, "", "NavigatorRight") vim.keymap.set({ "n", "t" }, "", "NavigatorUp") vim.keymap.set({ "n", "t" }, "", "NavigatorDown") vim.keymap.set({ "n", "t" }, "", "NavigatorPrevious") -- Telescope vim.keymap.set("n", ";", "Telescope builtin") vim.keymap.set("n", "ff", "Telescope find_files") vim.keymap.set("n", "fg", "Telescope live_grep") vim.keymap.set("n", "fb", "Telescope buffers") vim.keymap.set("n", "fl", "Telescope lsp_document_symbols") vim.keymap.set("n", "fe", "Telescope diagnostics") vim.keymap.set("n", "fs", "Telescope treesitter") vim.keymap.set("n", "fz", "Telescope current_buffer_fuzzy_find") vim.keymap.set("n", "fp", "Telescope projects") -- Hop vim.keymap.set("n", "hw", "HopWord") vim.keymap.set("n", "hl", "HopLine") -- Neotree vim.keymap.set("n", "nn", "Neotree float reveal reveal_force_cwd") vim.keymap.set("n", "nb", "Neotree toggle show buffers right") vim.keymap.set("n", "ns", "Neotree float git_status") -- Aerial vim.keymap.set("n", "a", "AerialToggle!") -- Trouble vim.keymap.set("n", "xx", "TroubleToggle") vim.keymap.set("n", "xw", "TroubleToggle workspace_diagnostics") vim.keymap.set("n", "xd", "TroubleToggle document_diagnostics") vim.keymap.set("n", "xq", "TroubleToggle quickfix") vim.keymap.set("n", "xl", "TroubleToggle loclist") -- nvim-test vim.keymap.set("n", "ts", "TestSuite") vim.keymap.set("n", "tf", "TestFile") vim.keymap.set("n", "te", "TestEdit") vim.keymap.set("n", "tn", "TestNearest") vim.keymap.set("n", "tl", "TestLast") vim.keymap.set("n", "tv", "TestVisit") vim.keymap.set("n", "ti", "TestInfo") -- barbar -- local map = vim.api.nvim_set_keymap local map = vim.keymap.set local opts = { noremap = true, silent = true } -- Move to previous/next map('n', '', 'BufferPrevious', opts) map('n', '', 'BufferNext', opts) -- Re-order to previous/next map('n', '', 'BufferMovePrevious', opts) map('n', '>', 'BufferMoveNext', opts) -- Goto buffer in position... map('n', '', 'BufferGoto 1', opts) map('n', '', 'BufferGoto 2', opts) map('n', '', 'BufferGoto 3', opts) map('n', '', 'BufferGoto 4', opts) map('n', '', 'BufferGoto 5', opts) map('n', '', 'BufferGoto 6', opts) map('n', '', 'BufferGoto 7', opts) map('n', '', 'BufferGoto 8', opts) map('n', '', 'BufferGoto 9', opts) map('n', '', 'BufferLast', opts) -- Pin/unpin buffer map('n', '', 'BufferPin', opts) -- Close buffer map('n', '', 'BufferClose', opts) map('n', '', 'BufferCloseAllButCurrentOrPinned', opts) -- Wipeout buffer -- :BufferWipeout -- Close commands -- :BufferCloseAllButCurrent -- :BufferCloseAllButPinned -- :BufferCloseAllButCurrentOrPinned -- :BufferCloseBuffersLeft -- :BufferCloseBuffersRight -- Magic buffer-picking mode map('n', '', 'BufferPick', opts) -- Sort automatically by... map('n', 'bb', 'BufferOrderByBufferNumber', opts) map('n', 'bd', 'BufferOrderByDirectory', opts) map('n', 'bl', 'BufferOrderByLanguage', opts) map('n', 'bw', 'BufferOrderByWindowNumber', opts) -- Other: -- :BarbarEnable - enables barbar (enabled by default) -- :BarbarDisable - very bad command, should never be used