visuals: move indent-blankline to its own module

This commit is contained in:
raf 2024-10-07 01:06:52 +03:00
commit 781fde66a9
Signed by: NotAShelf
GPG key ID: AF26552424E53993
6 changed files with 223 additions and 190 deletions

View file

@ -0,0 +1,21 @@
{
config,
lib,
...
}: let
inherit (lib.modules) mkIf;
inherit (lib.nvim.lua) toLuaObject;
inherit (lib.nvim.dag) entryAnywhere;
cfg = config.vim.visuals.indent-blankline;
in {
config = mkIf cfg.enable {
vim = {
startPlugins = ["indent-blankline"];
pluginRC.indent-blankline = entryAnywhere ''
require("ibl").setup(${toLuaObject cfg.setupOpts})
'';
};
};
}