From 008cd984c71803a66736f3bd203806367fdbc0f8 Mon Sep 17 00:00:00 2001 From: Adam <56338480+adastx@users.noreply.github.com> Date: Mon, 6 Dec 2021 08:52:37 +0100 Subject: Moved nvim viminfo file --- .config/nvim/lua/setup.lua | 4 ++-- .vim/vimrc | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.config/nvim/lua/setup.lua b/.config/nvim/lua/setup.lua index e32cd37..07b284e 100644 --- a/.config/nvim/lua/setup.lua +++ b/.config/nvim/lua/setup.lua @@ -1,10 +1,10 @@ -local set = vim.opt - vim.cmd('syntax enable') vim.cmd('set undodir=$XDG_CACHE_HOME/nvim/undo') vim.cmd('set undofile') +vim.cmd('set shada') vim.cmd('colorscheme doom-one') +local set = vim.opt set.mouse = "a" set.termguicolors = true set.hidden = true diff --git a/.vim/vimrc b/.vim/vimrc index ce2d71d..2385007 100644 --- a/.vim/vimrc +++ b/.vim/vimrc @@ -76,9 +76,8 @@ let g:netrw_home = $XDG_DATA_HOME."/vim" call mkdir($XDG_DATA_HOME."/vim/spell", 'p') set viewdir=$XDG_DATA_HOME/vim/view | call mkdir(&viewdir, 'p') +set viminfofile=$XDG_CACHE_HOME/vim/viminfo set backupdir=$XDG_CACHE_HOME/vim/backup | call mkdir(&backupdir, 'p') set directory=$XDG_CACHE_HOME/vim/swap | call mkdir(&directory, 'p') set undodir=$XDG_CACHE_HOME/vim/undo | call mkdir(&undodir, 'p') set undofile - -if !has('nvim') | set viminfofile=$XDG_CACHE_HOME/vim/viminfo | endif -- cgit v1.2.3-70-g09d2