wbthomason/packer.nvim

Do not put compiled loader in stdpath('config')

Open

#201 创建于 2021年2月7日

在 GitHub 查看
 (19 评论) (19 反应) (0 负责人)Lua (264 fork)batch import
enhancementgood first issuepacker-compilev1

仓库指标

Star
 (8,097 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

Currently, packer puts the compiled loader script in stdpath('config')/plugins. Since I sync stdpath('config') across multiple machines, this often leads to conflicts on :PackerSync.

Since the script is generated from user config, I believe it would be more appropriate to put it in stdpath('cache') or stdpath('data') (where rplugin.vim is placed, for example). In particular, the latter would be easy to handle without new logic by just putting it in, say .local/share/nvim/site/pack/loader/start/packer/plugin/ instead of .config/nvim/plugin. (I tested this.)

(Vim packages allow multiple parallel pack/**/start directories, all of which are automatically visible to vim. In fact, I believe the original idea for packages was that each package would have its own pack/<package>/start and pack/<package>/opt directory, where start serves as a replacement for autoload.)

贡献者指南