New plugin (highlight undo), currently not working properly

This commit is contained in:
2023-08-27 21:31:42 +02:00
parent 51cb8a4210
commit 720b175ffb
2 changed files with 21 additions and 2 deletions

View File

@@ -44,6 +44,26 @@ vim.g.NERDTreeShowHidden = 1
vim.g.lexima_enable_basic_rules = 1
vim.g.lexima_enable_newline_rules = 1
-- Highlight undo options
require("highlight-undo").setup({
duration = 1000,
undo = {
hlgroup = "HighlightUndo",
mode = "n",
lhs = "u",
map = "undo",
opts = {},
},
redo = {
hlgroup = "HighlightUndo",
mode = "n",
lhs = "<C-r>",
map = "redo",
opts = {},
},
highlight_for_count = true,
})
-- Nvim Formatter
-- Utilities for creating configurations
local util = require("formatter.util")