mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-07 02:41:33 +00:00
mini/indentscope: init
This commit is contained in:
parent
f31b2e06cb
commit
be7d949605
7 changed files with 62 additions and 0 deletions
19
modules/plugins/mini/indentscope/config.nix
Normal file
19
modules/plugins/mini/indentscope/config.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.nvim.dag) entryAnywhere;
|
||||
inherit (lib.nvim.lua) toLuaObject;
|
||||
|
||||
cfg = config.vim.mini.indentscope;
|
||||
in {
|
||||
vim = mkIf cfg.enable {
|
||||
startPlugins = ["mini-indentscope"];
|
||||
|
||||
pluginRC.mini-indentscope = entryAnywhere ''
|
||||
require("mini.indentscope").setup(${toLuaObject cfg.setupOpts})
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue