Skip to content
This repository has been archived by the owner on Oct 23, 2022. It is now read-only.

Load order #64

Closed
andreyorst opened this issue May 24, 2019 · 0 comments
Closed

Load order #64

andreyorst opened this issue May 24, 2019 · 0 comments

Comments

@andreyorst
Copy link
Owner

I'm thinking about supporting loading order. It's not quite the same as defer since it will allow to source plugins in different order. For example

We have plugins that provide powerline modules, for example langmap.kak and therefore rely on powerline.kak. So if we're going to load plugins we should load powerline before langmap. We can do it like so:

plug "andreyorst/powerline.kak"
plug "andreyorst/langmap.kak"

But if there are many plugins in kakrc it gets harder every time to figure out the order and move plugins around is a tedious task. So instead of keeping an order, it could be set with after keyword:

plug "andreyorst/langmap.kak" after "powerline.kak"
plug "andreyorst/powerline.kak"

This way the order load will be as follows:

source powerline.kak
source powerline-modules
source langmap.kak

Not sure how useful this feature will be, but there are some other plugins already that depend on other plugins, for example: kakoune-emmet depends on kakoune-snippets

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant