summaryrefslogtreecommitdiffstats
path: root/modules/plugins/visuals/nvim-cursorline/config.nix
blob: 487c9af44b39f2d091cacb80a34ff316468f1e58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
  config,
  lib,
  ...
}: let
  inherit (lib.modules) mkIf;
  inherit (lib.nvim.lua) toLuaObject;
  inherit (lib.nvim.dag) entryAnywhere;

  cfg = config.vim.visuals.nvim-cursorline;
in {
  config = mkIf cfg.enable {
    vim = {
      startPlugins = ["nvim-cursorline"];

      pluginRC.nvim-cursorline = entryAnywhere ''
        require("nvim-cursorline").setup(${toLuaObject cfg.setupOpts})
      '';
    };
  };
}