From 2a0a92f134ac0a9a7db790d3639130a6b5a16823 Mon Sep 17 00:00:00 2001 From: jdhao Date: Sun, 7 Nov 2021 00:26:18 +0800 Subject: [PATCH] change location of packer_compiled.lua Putting this file under ~/.config/nvim/plugin may cause problems since script under plugin/ will be loaded automatically. --- lua/plugins.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lua/plugins.lua b/lua/plugins.lua index 22343c6..0582b04 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -22,6 +22,7 @@ end -- Load packer.nvim vim.cmd("packadd packer.nvim") +local util = require('packer.util') require("packer").startup({ function(use) @@ -318,8 +319,11 @@ require("packer").startup({ end, config = { max_jobs = 16, + compile_path = util.join_paths(vim.fn.stdpath('config'), 'lua', 'packer_compiled.lua'), git = { default_url_format = plug_url_format, }, }, }) + +require('packer_compiled')