Set snapshot path of packer
This commit is contained in:
parent
7e40d7732f
commit
4a076eacd9
4
init.lua
4
init.lua
@ -3,6 +3,7 @@ local fn = vim.fn -- to call Vim functions e.g. fn.bufnr()
|
||||
local g = vim.g -- a table to access global variables
|
||||
local opt = vim.opt -- to set options
|
||||
local utils = require('utils')
|
||||
local packerUtil = require'packer.util'
|
||||
|
||||
-------------------- PACKER --------------------------------
|
||||
-- Auto install packer.nvim if not exists
|
||||
@ -12,6 +13,9 @@ if fn.empty(fn.glob(install_path)) > 0 then
|
||||
vim.cmd 'packadd packer.nvim'
|
||||
end
|
||||
vim.cmd [[packadd packer.nvim]]
|
||||
require('packer').init({
|
||||
snapshot_path = packerUtil.join_paths(vim.fn.stdpath('config'), 'snapshots')
|
||||
})
|
||||
-------------------- EXTERNAL ------------------------------
|
||||
require('my_plugins')
|
||||
require('my_keymappings')
|
||||
|
Loading…
x
Reference in New Issue
Block a user