local function map(mode, lhs, rhs) vim.api.nvim_set_keymap(mode, lhs, rhs, {}) end -- Buffer navigation map("n", "", ":bnext") map("n", "", ":bprevious") map("n", "x", ":bd!") -- Resize buffer splits map("n", "", ":vertical resize +3") map("n", "", ":vertical resize -3") map("n", "", ":horizontal resize +3") map("n", "", ":horizontal resize -3") -- Netrw map("n", "", ":Exp") -- Remove highlights map("n", "h", ":noh") -- Replace (visual) map("v", "r", "\"hy:%s/h//g") -- Buffer manager map("n", "b", ":lua require(\"buffer_manager.ui\").toggle_quick_menu()")