dotfiles

$HOME is where the <3 is
git clone git://git.alexkarle.com/dotfiles.git
Log | Files | Refs | README | LICENSE

commit 8a18ad8088e61b139feea6bcb893cd3a1710582c (patch)
parent 66dc98c747494efe01d05d7e1dd721e36c8d4996
Author: Alex Karle <alex@alexkarle.com>
Date:   Wed, 23 Feb 2022 01:20:02 -0500

nvim: Add persistent undo files

So pleased to see that I don't need to jump through the usual hoops
of creating ~/.vim/undo and putting a .gitkeep file there and
gitignoring everything else... nvim just creates a ~/.local/share
directory by itself and handles it all!

Diffstat:
M.config/nvim/init.lua | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua @@ -1,6 +1,9 @@ -- init.lua ; my nvim config vim.cmd [[colorscheme acme]] +-- Persistent undo files in ~/.local/share/nvim/undo +vim.opt.undofile = true + -- Switch between windows with Ctrl-h/j/k/l vim.api.nvim_set_keymap("n", "<C-h>", "<C-w>h", { noremap = true }) vim.api.nvim_set_keymap("n", "<C-j>", "<C-w>j", { noremap = true })