1
0
Fork 0
mirror of https://github.com/NotAShelf/neovim-flake.git synced 2025-01-31 19:29:49 +01:00
neovim-flake/modules/plugins/visuals/cinnamon-nvim/config.nix

21 lines
403 B
Nix

{
config,
lib,
...
}: let
inherit (lib.modules) mkIf;
inherit (lib.nvim.lua) toLuaObject;
inherit (lib.nvim.dag) entryAnywhere;
cfg = config.vim.visuals.cinnamon-nvim;
in {
config = mkIf cfg.enable {
vim = {
startPlugins = ["cinnamon-nvim"];
pluginRC.cursorline = entryAnywhere ''
require("cinnamon").setup(${toLuaObject cfg.setupOpts})
'';
};
};
}