mirror of
https://codeberg.org/andyscott/dotfiles.git
synced 2024-11-09 14:00:47 -05:00
Fix for saving swap files to .cache
This commit is contained in:
parent
4f8d520b8f
commit
ad73baa2d3
1 changed files with 5 additions and 3 deletions
|
@ -2,8 +2,6 @@ vim.g.mapleader = " "
|
||||||
|
|
||||||
vim.keymap.set({ "n", "v" }, "<Leader>y", '"+y', { noremap = true, silent = true })
|
vim.keymap.set({ "n", "v" }, "<Leader>y", '"+y', { noremap = true, silent = true })
|
||||||
|
|
||||||
vim.cmd('syntax enable')
|
|
||||||
|
|
||||||
vim.opt.encoding = 'utf-8'
|
vim.opt.encoding = 'utf-8'
|
||||||
vim.opt.fileencoding = 'utf-8'
|
vim.opt.fileencoding = 'utf-8'
|
||||||
vim.opt.mouse = 'a'
|
vim.opt.mouse = 'a'
|
||||||
|
@ -32,7 +30,11 @@ vim.opt.updatetime = 300
|
||||||
vim.opt.timeoutlen = 500
|
vim.opt.timeoutlen = 500
|
||||||
vim.opt.autochdir = true
|
vim.opt.autochdir = true
|
||||||
vim.opt.swapfile = true
|
vim.opt.swapfile = true
|
||||||
vim.opt.dir = '~/.cache/nvim'
|
|
||||||
|
vim.cmd [[
|
||||||
|
syntax enable
|
||||||
|
set dir=~/.cache/nvim
|
||||||
|
]]
|
||||||
|
|
||||||
local Plug = vim.fn['plug#']
|
local Plug = vim.fn['plug#']
|
||||||
vim.call('plug#begin', '~/.local/share/nvim/plugged')
|
vim.call('plug#begin', '~/.local/share/nvim/plugged')
|
||||||
|
|
Loading…
Reference in a new issue