mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-02-23 20:12:00 +00:00
visuals/blink-indent: lazy load
This commit is contained in:
parent
0f7764b83b
commit
191d9fb10b
1 changed files with 5 additions and 7 deletions
|
|
@ -4,18 +4,16 @@
|
|||
...
|
||||
}: let
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.nvim.lua) toLuaObject;
|
||||
inherit (lib.nvim.dag) entryAnywhere;
|
||||
|
||||
cfg = config.vim.visuals.blink-indent;
|
||||
in {
|
||||
config = mkIf cfg.enable {
|
||||
vim = {
|
||||
startPlugins = ["blink-indent"];
|
||||
vim.lazy.plugins.blink-indent = {
|
||||
package = "blink-indent";
|
||||
setupModule = "blink.indent";
|
||||
inherit (cfg) setupOpts;
|
||||
|
||||
pluginRC.blink-indent = entryAnywhere ''
|
||||
require("blink.indent").setup(${toLuaObject cfg.setupOpts})
|
||||
'';
|
||||
event = ["BufEnter"];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue