mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-01-13 22:17:49 +00:00
visuals: move indent-blankline to its own module
This commit is contained in:
parent
95b09bc3a4
commit
781fde66a9
6 changed files with 223 additions and 190 deletions
21
modules/plugins/visuals/indent-blankline/config.nix
Normal file
21
modules/plugins/visuals/indent-blankline/config.nix
Normal 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})
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue