mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-22 19:59:49 +01:00
24 lines
366 B
Nix
24 lines
366 B
Nix
|
{
|
||
|
pkgs,
|
||
|
config,
|
||
|
lib,
|
||
|
...
|
||
|
}:
|
||
|
with lib;
|
||
|
with builtins; let
|
||
|
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;
|
||
|
};
|
||
|
};
|
||
|
}
|