neovim-flake/modules/plugins/utility/ccc/config.nix
Jens Feodor Nielsen c0fe9f1839 utility/ccc: no hidden mapping, better types
- Remove hidden mapping input/output options into luaInline with
   prefixes.
 - Update types of setupOpts sub-options to avoid large blocks of
   inline Lua in the configuration.
2025-12-18 15:31:09 +01:00

19 lines
378 B
Nix

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