From 701ea23649a47b6318c8f56b91e66cbc03c2526e Mon Sep 17 00:00:00 2001 From: TheK4n Date: Sat, 28 Jan 2023 23:58:30 +0300 Subject: [PATCH] edit(nvim): change directory of nvim temp files --- Makefile | 2 +- sub/nvim/lua/base/options.lua | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index eb088af..622f43e 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/sub/nvim/lua/base/options.lua b/sub/nvim/lua/base/options.lua index 468fdea..837d1fd 100644 --- a/sub/nvim/lua/base/options.lua +++ b/sub/nvim/lua/base/options.lua @@ -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)