diff --git a/modules/ui/modes/config.nix b/modules/ui/modes/config.nix index 067a2e14..bb7130e5 100644 --- a/modules/ui/modes/config.nix +++ b/modules/ui/modes/config.nix @@ -14,7 +14,9 @@ in { ]; vim.luaConfigRC.modes-nvim = nvim.dag.entryAnywhere '' - require('modes').setup() + require('modes').setup({ + set_cursorline = ${boolToString cfg.setCursorline}, -- looks ugly + }) ''; }; } diff --git a/modules/ui/modes/modes.nix b/modules/ui/modes/modes.nix index a1b2dcc4..0633bb51 100644 --- a/modules/ui/modes/modes.nix +++ b/modules/ui/modes/modes.nix @@ -1,11 +1,13 @@ -{ - config, - lib, - ... -}: +{lib, ...}: with lib; with builtins; { options.vim.ui.modes-nvim = { enable = mkEnableOption "modes.nvim's prismatic line decorations"; + + setCursorline = mkOption { + type = types.bool; + description = "Set a colored cursorline on current line"; + default = false; + }; }; }