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") -- Neovide map("n", "", ":lua vim.g.neovide_scale_factor = math.min(vim.g.neovide_scale_factor + 0.1, 1.0)") map("n", "", ":lua vim.g.neovide_scale_factor = math.max(vim.g.neovide_scale_factor - 0.1, 0.1)")