From 1f2d924dc16d7e0aa27f0aee80972e0930ffec77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Hend=C3=A9n?= Date: Fri, 15 Nov 2024 20:49:46 -0400 Subject: [PATCH] add tab/s-tab to cycle buffers add and set onedark as default colorscheme --- init.lua | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/init.lua b/init.lua index b723e111..b08e67ff 100644 --- a/init.lua +++ b/init.lua @@ -200,6 +200,8 @@ vim.keymap.set('n', '', '', { desc = 'Move focus to the left wind vim.keymap.set('n', '', '', { desc = 'Move focus to the right window' }) vim.keymap.set('n', '', '', { desc = 'Move focus to the lower window' }) vim.keymap.set('n', '', '', { desc = 'Move focus to the upper window' }) +vim.keymap.set('n', '', ':bn!', { desc = 'Go to next buffer' }) +vim.keymap.set('n', '', ':bp!', { desc = 'Go to previous buffer' }) -- Toggles vim.keymap.set('n', 'n', ':set number!:set relativenumber!') @@ -865,15 +867,19 @@ require('lazy').setup({ priority = 1000, -- Make sure to load this before all the other start plugins. init = function() vim.cmd.hi 'Comment gui=none' - vim.cmd.colorscheme 'tokyonight-moon' end, }, - { 'zenbones-theme/zenbones.nvim', dependencies = 'rktjmp/lush.nvim', lazy = false, priority = 1000 }, { 'catppuccin/nvim', name = 'catppuccin', priority = 1000 }, - { 'navarasu/onedark.nvim', name = 'onedark', priority = 1000 }, + { + 'navarasu/onedark.nvim', + name = 'onedark', + priority = 1000, + init = function() + vim.cmd.colorscheme 'onedark' + end, + }, { 'scottmckendry/cyberdream.nvim', lazy = false, priority = 1000 }, - { 'yorik1984/newpaper.nvim', priority = 1000, @@ -881,12 +887,8 @@ require('lazy').setup({ vim.g.newpaper_style = 'light' end, }, - { 'rebelot/kanagawa.nvim', priority = 1000 }, - { - 'EdenEast/nightfox.nvim', - priority = 1000, - }, + { 'EdenEast/nightfox.nvim', priority = 1000 }, -- Highlight todo, notes, etc in comments { 'folke/todo-comments.nvim', event = 'VimEnter', dependencies = { 'nvim-lua/plenary.nvim' }, opts = { signs = false } },