From 29f3abf2860ff7a726255ede7b5caeb58f45b656 Mon Sep 17 00:00:00 2001 From: Cian Hughes Date: Mon, 16 Feb 2026 11:15:04 +0000 Subject: [PATCH] Minor plugin upgrades --- lua/config/keys.lua | 57 +++++++++++++++++++----------------------- lua/plugins/editor.lua | 8 +++++- 2 files changed, 33 insertions(+), 32 deletions(-) diff --git a/lua/config/keys.lua b/lua/config/keys.lua index c0ce705..875686f 100644 --- a/lua/config/keys.lua +++ b/lua/config/keys.lua @@ -27,6 +27,28 @@ return { { "p", group = "[P]recognition", icon = "󰬯" }, { "?", group = "[?] Cheatsheet", icon = "󰧹" }, }, + globals = { + -- Window Navigation + { "", "h", desc = "Window Left" }, + { "", "j", desc = "Window Down" }, + { "", "k", desc = "Window Up" }, + { "", "l", desc = "Window Right" }, + -- Window Resizing + { "", "+", desc = "Resize Increase Height" }, + { "", "-", desc = "Resize Decrease Height" }, + { "", ">", desc = "Resize Increase Width" }, + { "", "<", desc = "Resize Decrease Width" }, + -- Splits + { "", "s", desc = "Split Window Horizontal" }, + { "", "x", desc = "Swap Window" }, + { "", ":q", desc = "Close Window" }, + -- Misc + { "", "nohlsearch", desc = "Clear Highlight" }, + { "dd", vim.diagnostic.open_float, desc = "Show [D]iagnostics" }, + }, + atone = { + { "U", vim.api.nvim_command("Atone toggle"), desc = "[U]ndotree" }, + }, gitsigns = { { "gs", @@ -89,25 +111,7 @@ return { expr = true, }, }, - globals = { - -- Window Navigation - { "", "h", desc = "Window Left" }, - { "", "j", desc = "Window Down" }, - { "", "k", desc = "Window Up" }, - { "", "l", desc = "Window Right" }, - -- Window Resizing - { "", "+", desc = "Resize Increase Height" }, - { "", "-", desc = "Resize Decrease Height" }, - { "", ">", desc = "Resize Increase Width" }, - { "", "<", desc = "Resize Decrease Width" }, - -- Splits - { "", "s", desc = "Split Window Horizontal" }, - { "", "x", desc = "Swap Window" }, - { "", ":q", desc = "Close Window" }, - -- Misc - { "", "nohlsearch", desc = "Clear Highlight" }, - { "dd", vim.diagnostic.open_float, desc = "Show [D]iagnostics" }, - }, + harpoon = { { "ha", @@ -162,25 +166,19 @@ return { lazygit = { { "lg", - function() - vim.api.nvim_command("lua Snacks.lazygit()") - end, + Snacks.lazygit, desc = "[L]azy[G]it", mode = "n", }, { "ll", - function() - vim.api.nvim_command("lua Snacks.lazygit.log()") - end, + Snacks.lazygit.log, desc = "[L]azyGit [L]og", mode = "n", }, { "lf", - function() - vim.api.nvim_command("lua Snacks.lazygit.log_file()") - end, + Snacks.lazygit.log_file, desc = "[L]azyGit [F]ile Log", mode = "n", }, @@ -507,7 +505,4 @@ return { desc = "Toggle Rainbow Delimiters", }, }, - undotree = { - { "U", vim.cmd.UndotreeToggle, desc = "[U]ndotree" }, - }, } diff --git a/lua/plugins/editor.lua b/lua/plugins/editor.lua index 36549d9..3ad28d0 100644 --- a/lua/plugins/editor.lua +++ b/lua/plugins/editor.lua @@ -108,6 +108,12 @@ return { { -- Undo tree "mbbill/undotree", event = "VeryLazy", - keys = require("config.keys").undotree, + }, + { + "XXiaoA/atone.nvim", + event = "VeryLazy", + cmd = "Atone", + keys = require("config.keys").atone, + opts = {}, }, }