mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2026-01-01 07:10:06 +01:00
- 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.
19 lines
378 B
Nix
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})
|
|
'';
|
|
};
|
|
}
|