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 g = vim.g -- a table to access global variables
|
||||||
local opt = vim.opt -- to set options
|
local opt = vim.opt -- to set options
|
||||||
local utils = require('utils')
|
local utils = require('utils')
|
||||||
|
local packerUtil = require'packer.util'
|
||||||
|
|
||||||
-------------------- PACKER --------------------------------
|
-------------------- PACKER --------------------------------
|
||||||
-- Auto install packer.nvim if not exists
|
-- 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'
|
vim.cmd 'packadd packer.nvim'
|
||||||
end
|
end
|
||||||
vim.cmd [[packadd packer.nvim]]
|
vim.cmd [[packadd packer.nvim]]
|
||||||
|
require('packer').init({
|
||||||
|
snapshot_path = packerUtil.join_paths(vim.fn.stdpath('config'), 'snapshots')
|
||||||
|
})
|
||||||
-------------------- EXTERNAL ------------------------------
|
-------------------- EXTERNAL ------------------------------
|
||||||
require('my_plugins')
|
require('my_plugins')
|
||||||
require('my_keymappings')
|
require('my_keymappings')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user