mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-05 04:51:14 +00:00
24 lines
372 B
Nix
24 lines
372 B
Nix
{
|
|
pkgs,
|
|
config,
|
|
lib,
|
|
...
|
|
}: let
|
|
inherit (lib.modules) mkIf;
|
|
|
|
cfg = config.vim.tidal;
|
|
in {
|
|
config = mkIf (cfg.enable) {
|
|
vim.startPlugins = [
|
|
# From tidalcycles flake
|
|
pkgs.vimPlugins.vim-tidal
|
|
];
|
|
|
|
vim.globals = {
|
|
"tidal_target" = "terminal";
|
|
"tidal_flash_duration" = 150;
|
|
"tidal_sc_enable" = cfg.openSC;
|
|
};
|
|
};
|
|
}
|