edit(nvim): change directory of nvim temp files

This commit is contained in:
TheK4n 2023-01-28 23:58:30 +03:00
parent 1245825900
commit 701ea23649
2 changed files with 3 additions and 3 deletions

View File

@ -42,7 +42,7 @@ nvim:
ln -s $(PWD)/sub/nvim ~/.config/nvim
ln -s $(PWD)/functions/vim_askpass_helper ~/.local/bin
git clone --depth 1 https://github.com/wbthomason/packer.nvim ~/.local/share/nvim/site/pack/packer/start/packer.nvim
nvim +PackerCompile +PackerClean +PackerUpdate +PackerUpdate +qall
nvim +PackerCompile +PackerSync +PackerSync
ssh:
cat $(PWD)/sub/ssh/config >> ~/.ssh/config

View File

@ -65,11 +65,11 @@ opt.undofile = true
opt.history = 1000
opt.undoreload = 1000
local prefix = vim.fn.expand("~/.cache/nvim/tmp")
local prefix = vim.fn.expand("~/.local/state/nvim")
opt.undodir = { prefix .. "/undo//" }
opt.backupdir = { prefix .. "/backup//" }
opt.directory = { prefix .. "/swp//" }
opt.directory = { prefix .. "/swap//" }
local function makeDirIfNoExists(path)