From 6af7042c8a8ebd1064eddb6c5ed74028edd30299 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sun, 24 Mar 2024 10:58:36 +0200 Subject: [text] Added history --- lua/text.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lua/text.lua') diff --git a/lua/text.lua b/lua/text.lua index 0adea2d..e9dcc3e 100644 --- a/lua/text.lua +++ b/lua/text.lua @@ -30,3 +30,8 @@ vim.api.nvim_create_autocmd({ "BufEnter" }, { callback = function (ev) vim.cmd("startinsert") end end }) + +--[=[ History ]=]-- + +vim.o.undofile = true +vim.o.undodir = vim.fn.expand("~/nvim/undo") -- cgit v1.3.1-23-gd82d