diff --git a/lua/lazy-plugins.lua b/lua/lazy-plugins.lua index 03418e2a..ba002784 100644 --- a/lua/lazy-plugins.lua +++ b/lua/lazy-plugins.lua @@ -69,21 +69,13 @@ require('lazy').setup({ -- don't override the built-in and fugitive keymaps local gs = package.loaded.gitsigns vim.keymap.set({ 'n', 'v' }, ']c', function() - if vim.wo.diff then - return ']c' - end - vim.schedule(function() - gs.next_hunk() - end) + if vim.wo.diff then return ']c' end + vim.schedule(function() gs.next_hunk() end) return '' end, { expr = true, buffer = bufnr, desc = 'Jump to next hunk' }) vim.keymap.set({ 'n', 'v' }, '[c', function() - if vim.wo.diff then - return '[c' - end - vim.schedule(function() - gs.prev_hunk() - end) + if vim.wo.diff then return '[c' end + vim.schedule(function() gs.prev_hunk() end) return '' end, { expr = true, buffer = bufnr, desc = 'Jump to previous hunk' }) end, @@ -94,9 +86,7 @@ require('lazy').setup({ -- Theme inspired by Atom 'navarasu/onedark.nvim', priority = 1000, - config = function() - vim.cmd.colorscheme 'onedark' - end, + config = function() vim.cmd.colorscheme 'onedark' end, }, { @@ -139,9 +129,7 @@ require('lazy').setup({ -- NOTE: If you are having trouble with this installation, -- refer to the README for telescope-fzf-native for more instructions. build = 'make', - cond = function() - return vim.fn.executable 'make' == 1 - end, + cond = function() return vim.fn.executable 'make' == 1 end, }, }, },