From f25cce3982454fecf782c4e3d2f1ff4f27074b54 Mon Sep 17 00:00:00 2001 From: killeik <69602482+killeik@users.noreply.github.com> Date: Sat, 14 Jun 2025 19:49:21 +0300 Subject: [PATCH] Use the dot syntax for module paths --- lua/lazy-plugins.lua | 24 ++++++------------------ 1 file changed, 6 insertions(+), 18 deletions(-) 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, }, }, },