edit(nvim): change directory of nvim temp files
This commit is contained in:
parent
1245825900
commit
701ea23649
2
Makefile
2
Makefile
@ -42,7 +42,7 @@ nvim:
|
|||||||
ln -s $(PWD)/sub/nvim ~/.config/nvim
|
ln -s $(PWD)/sub/nvim ~/.config/nvim
|
||||||
ln -s $(PWD)/functions/vim_askpass_helper ~/.local/bin
|
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
|
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:
|
ssh:
|
||||||
cat $(PWD)/sub/ssh/config >> ~/.ssh/config
|
cat $(PWD)/sub/ssh/config >> ~/.ssh/config
|
||||||
|
|||||||
@ -65,11 +65,11 @@ opt.undofile = true
|
|||||||
opt.history = 1000
|
opt.history = 1000
|
||||||
opt.undoreload = 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.undodir = { prefix .. "/undo//" }
|
||||||
opt.backupdir = { prefix .. "/backup//" }
|
opt.backupdir = { prefix .. "/backup//" }
|
||||||
opt.directory = { prefix .. "/swp//" }
|
opt.directory = { prefix .. "/swap//" }
|
||||||
|
|
||||||
|
|
||||||
local function makeDirIfNoExists(path)
|
local function makeDirIfNoExists(path)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user