2022-05-28 23:57:56 -07:00
|
|
|
-- Eryn Wells <eryn@erynwells.me>
|
|
|
|
|
|
|
|
vim.opt.runtimepath:prepend "~/.vim"
|
|
|
|
vim.cmd [[ source ~/.vimrc.common ]]
|
|
|
|
|
|
|
|
require 'configuration'
|
|
|
|
require 'keys'
|
2022-11-16 08:58:07 -08:00
|
|
|
|
2023-03-20 08:40:57 -07:00
|
|
|
vim.cmd [[ source ~/.vim/plugins.vim ]]
|
|
|
|
|
|
|
|
function ensure_metadata_directories_exist()
|
2022-11-16 08:58:07 -08:00
|
|
|
paths = {
|
|
|
|
vim.opt.backupdir:get(),
|
|
|
|
vim.opt.directory:get(),
|
|
|
|
vim.opt.undodir:get()
|
|
|
|
}
|
|
|
|
|
|
|
|
for _, opt in ipairs(paths) do
|
|
|
|
local first_path = opt[1]
|
|
|
|
if string.find(first_path, "//$") then
|
|
|
|
os.execute("mkdir -p " .. first_path)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2023-03-20 08:40:57 -07:00
|
|
|
ensure_metadata_directories_exist()
|