diff options
| author | srdusr <trevorgray@srdusr.com> | 2023-07-16 03:06:18 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2023-07-16 03:06:18 +0200 |
| commit | 6d91b682a774a66c6647893571488d423aea6901 (patch) | |
| tree | fffbf27e4b32a222376564f9c29259f8a142c7b6 /lua/user/opts.lua | |
| parent | 0d3a244ff2d3f10d3d3946fbff55b11451cb53e5 (diff) | |
| download | dotfiles-6d91b682a774a66c6647893571488d423aea6901.tar.gz dotfiles-6d91b682a774a66c6647893571488d423aea6901.zip | |
Set undofile to true
Diffstat (limited to 'lua/user/opts.lua')
| -rw-r--r-- | lua/user/opts.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lua/user/opts.lua b/lua/user/opts.lua index 6375350..9f9293a 100644 --- a/lua/user/opts.lua +++ b/lua/user/opts.lua @@ -123,11 +123,13 @@ vim.opt.report = 0 -- Always report changed lines. -- Backup/undo/swap local prefix = vim.env.XDG_CONFIG_HOME or vim.fn.expand("~/.config") +--vim.opt.undodir = os.getenv("HOME") .. "/.vim/undodir" vim.opt.undodir = { prefix .. "/nvim/tmp/.undo//" } vim.opt.backupdir = { prefix .. "/nvim/tmp/.backup//" } vim.opt.directory = { prefix .. "/nvim/tmp/.swp//" } vim.opt.backup = false -- -vim.opt.undofile = false -- +--vim.opt.undofile = false -- +vim.opt.undofile = true -- vim.opt.swapfile = true -- -- Add timestamp as extension for backup files vim.api.nvim_create_autocmd('BufWritePre', { @@ -141,6 +143,7 @@ vim.api.nvim_create_autocmd('BufWritePre', { -- Format --vim.opt.textwidth = 80 -- +vim.opt.isfname:append("@-@") vim.cmd([[let &t_Cs = "\e[4:3m"]]) -- Undercurl vim.cmd([[let &t_Ce = "\e[4:0m"]]) -- vim.opt.path:append({ "**" }) -- Finding files - Search down into subfolder |
