From 55391c3fc37ea3c00d9886265d0708d06241acd2 Mon Sep 17 00:00:00 2001 From: kalmenn Date: Sun, 17 Dec 2023 20:32:38 +0100 Subject: [PATCH] nvim: undotree: switched from vim commands to lua function calls --- .config/nvim/lua/plugins/undotree.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.config/nvim/lua/plugins/undotree.lua b/.config/nvim/lua/plugins/undotree.lua index f87fdc0..fea3779 100644 --- a/.config/nvim/lua/plugins/undotree.lua +++ b/.config/nvim/lua/plugins/undotree.lua @@ -1,6 +1,12 @@ return { "mbbill/undotree", keys = { - { "", "UndotreeToggleUndotreeFocus" }, + { + "", + function() + vim.cmd.UndotreeToggle(); + vim.cmd.UndotreeFocus(); + end + }, }, }