From 6579926607d2cf5a9f7ca8ec8b7221bd321b6f02 Mon Sep 17 00:00:00 2001 From: Cian Hughes Date: Mon, 16 Feb 2026 13:51:55 +0000 Subject: [PATCH] Fixed problems with config --- lua/config/keys.lua | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/lua/config/keys.lua b/lua/config/keys.lua index 875686f..76ebaee 100644 --- a/lua/config/keys.lua +++ b/lua/config/keys.lua @@ -47,7 +47,13 @@ return { { "dd", vim.diagnostic.open_float, desc = "Show [D]iagnostics" }, }, atone = { - { "U", vim.api.nvim_command("Atone toggle"), desc = "[U]ndotree" }, + { + "U", + function() + require("atone.core").toggle() + end, + desc = "[U]ndotree", + }, }, gitsigns = { { @@ -166,19 +172,25 @@ return { lazygit = { { "lg", - Snacks.lazygit, + function() + Snacks.lazygit() + end, desc = "[L]azy[G]it", mode = "n", }, { "ll", - Snacks.lazygit.log, + function() + Snacks.lazygit.log() + end, desc = "[L]azyGit [L]og", mode = "n", }, { "lf", - Snacks.lazygit.log_file, + function() + Snacks.lazygit.log_file() + end, desc = "[L]azyGit [F]ile Log", mode = "n", },