Fix for saving swap files to .cache

This commit is contained in:
Andrew Scott 2023-04-02 02:38:06 -04:00
parent 4f8d520b8f
commit ad73baa2d3
Signed by: a
GPG key ID: 7CD5A5977E4931C1

View file

@ -2,8 +2,6 @@ vim.g.mapleader = " "
vim.keymap.set({ "n", "v" }, "<Leader>y", '"+y', { noremap = true, silent = true })
vim.cmd('syntax enable')
vim.opt.encoding = 'utf-8'
vim.opt.fileencoding = 'utf-8'
vim.opt.mouse = 'a'
@ -32,7 +30,11 @@ vim.opt.updatetime = 300
vim.opt.timeoutlen = 500
vim.opt.autochdir = true
vim.opt.swapfile = true
vim.opt.dir = '~/.cache/nvim'
vim.cmd [[
syntax enable
set dir=~/.cache/nvim
]]
local Plug = vim.fn['plug#']
vim.call('plug#begin', '~/.local/share/nvim/plugged')