From c4d38f2c83adfaff372a3f0290d8d59099f35104 Mon Sep 17 00:00:00 2001 From: alice-vu-163 Date: Tue, 6 May 2025 17:41:02 +0700 Subject: [PATCH] Change from branch A --- lua/custom/plugins/init.lua | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/lua/custom/plugins/init.lua b/lua/custom/plugins/init.lua index bf9a2a48..0b61f6d7 100644 --- a/lua/custom/plugins/init.lua +++ b/lua/custom/plugins/init.lua @@ -4,6 +4,22 @@ -- See the kickstart.nvim README for more information return { { + 'akinsho/git-conflict.nvim', + version = '*', + config = function() + require('git-conflict').setup() + + -- Optional: Set up keymaps for common conflict resolution commands + vim.keymap.set('n', 'co', 'GitConflictChooseOurs', { desc = '[GIT] Choose Ours' }) + vim.keymap.set('n', 'ct', 'GitConflictChooseTheirs', { desc = '[GIT] Choose Theirs' }) + vim.keymap.set('n', 'cb', 'GitConflictChooseBoth', { desc = '[GIT] Choose Both' }) + vim.keymap.set('n', 'c0', 'GitConflictChooseNone', { desc = '[GIT] Choose None' }) + vim.keymap.set('n', ']x', 'GitConflictNextConflict', { desc = '[GIT] Next Conflict' }) + vim.keymap.set('n', '[x', 'GitConflictPrevConflict', { desc = '[GIT] Prev Conflict' }) + end, + }, + { + 'sphamba/smear-cursor.nvim', event = 'VeryLazy', config = function() @@ -11,8 +27,8 @@ return { cursor_color = '#ff8800', stiffness = 1, trailing_stiffness = 0.35, - trailing_exponent = 15, - hide_target_hack = false, + trailing_exponent = 25, + hide_target_hack = true, gamma = 1, } end,