wbthomason / packer.nvim

A use-package inspired plugin manager for Neovim. Uses native packages, supports Luarocks dependencies, written in Lua, allows for expressive config
MIT License
7.72k stars 262 forks source link

feat: keep compiled script same order with declaration #1141

Closed alannotnerd closed 1 year ago

alannotnerd commented 1 year ago

I found it will be confused if the script keeps changing after compiling, even if the plugin specifications are not changed. So I made a minor change to improve.

alannotnerd commented 1 year ago

It's mainly caused by the order of pairs is unspecified in Lua.

lewis6991 commented 1 year ago

This isn't documented at all and makes the code much harder to understand.

alannotnerd commented 1 year ago

It's a minimal change for myself to use. We should use an array-like table for plugins, just like plugin-descriptions did. If that is acceptable, I will put more commits to make it understandable. :P

alannotnerd commented 1 year ago

@lewis6991 I have a simple look for your PR. It's really a great job. I guess I should close this PR till yours merged.

yyy33 commented 1 year ago

I have installed the vim-notify plugin and I want it to be loaded before all plugins, so I have to add the after field to the configuration of all other plugins, it's too much trouble. How can I specify the order in which plugins are loaded by declaring them, please @alannotnerd