diff options
| author | jdhao <jdhao@hotmail.com> | 2021-11-07 00:26:18 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2021-11-07 00:26:18 +0800 |
| commit | 2a0a92f134ac0a9a7db790d3639130a6b5a16823 (patch) | |
| tree | a97f9a4349d0ddc409d6cdcb238e3f96f65ee890 /lua/plugins.lua | |
| parent | 62b62265203a9c2949ec80ae205b350c37fd2fc8 (diff) | |
change location of packer_compiled.lua
Putting this file under ~/.config/nvim/plugin may cause problems since
script under plugin/ will be loaded automatically.
Diffstat (limited to 'lua/plugins.lua')
| -rw-r--r-- | lua/plugins.lua | 4 |
1 files changed, 4 insertions, 0 deletions
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') |
