mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-10-31 19:12:38 +00:00
autocmds: ensure augroups are set up before autocmds
This commit is contained in:
parent
3f30cef69f
commit
d26b9dc896
1 changed files with 2 additions and 2 deletions
|
|
@ -9,7 +9,7 @@
|
||||||
inherit (lib.types) nullOr submodule listOf str bool;
|
inherit (lib.types) nullOr submodule listOf str bool;
|
||||||
inherit (lib.nvim.types) luaInline;
|
inherit (lib.nvim.types) luaInline;
|
||||||
inherit (lib.nvim.lua) toLuaObject;
|
inherit (lib.nvim.lua) toLuaObject;
|
||||||
inherit (lib.nvim.dag) entryAfter;
|
inherit (lib.nvim.dag) entryAfter entryBetween;
|
||||||
|
|
||||||
autocommandType = submodule {
|
autocommandType = submodule {
|
||||||
options = {
|
options = {
|
||||||
|
|
@ -144,7 +144,7 @@ in {
|
||||||
enabledAutogroups = filter (au: au.enable) cfg.augroups;
|
enabledAutogroups = filter (au: au.enable) cfg.augroups;
|
||||||
in {
|
in {
|
||||||
luaConfigRC = {
|
luaConfigRC = {
|
||||||
augroups = entryAfter ["pluginConfigs"] (optionalString (enabledAutogroups != []) ''
|
augroups = entryBetween ["autocmds"] ["pluginConfigs"] (optionalString (enabledAutogroups != []) ''
|
||||||
local nvf_autogroups = {}
|
local nvf_autogroups = {}
|
||||||
for _, group in ipairs(${toLuaObject enabledAutogroups}) do
|
for _, group in ipairs(${toLuaObject enabledAutogroups}) do
|
||||||
if group.name then
|
if group.name then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue