mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-14 04:55:57 +01:00
feat: add cellularAutomaton keybindings
This commit is contained in:
parent
812d04ee36
commit
810aae53b2
2 changed files with 12 additions and 6 deletions
|
@ -50,6 +50,8 @@ in {
|
||||||
)
|
)
|
||||||
];
|
];
|
||||||
|
|
||||||
|
vim.maps.normal = mkIf (cfg.cellularAutomaton.enable) (mkBinding cfg.cellularAutomaton.mappings.makeItRain "<cmd>CellularAutomaton make_it_rain<CR>" "Make it rain");
|
||||||
|
|
||||||
vim.luaConfigRC.visuals = nvim.dag.entryAnywhere ''
|
vim.luaConfigRC.visuals = nvim.dag.entryAnywhere ''
|
||||||
${
|
${
|
||||||
if cfg.lspkind.enable
|
if cfg.lspkind.enable
|
||||||
|
@ -134,8 +136,6 @@ in {
|
||||||
end
|
end
|
||||||
|
|
||||||
require("cellular-automaton").register_animation(config)
|
require("cellular-automaton").register_animation(config)
|
||||||
|
|
||||||
vim.keymap.set("n", "<leader>fml", "<cmd>CellularAutomaton make_it_rain<CR>")
|
|
||||||
''
|
''
|
||||||
else ""
|
else ""
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,12 +36,18 @@ with builtins; {
|
||||||
default = false;
|
default = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
cellularAutomaton.enable = mkOption {
|
cellularAutomaton = {
|
||||||
|
enable = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
description = "Enable cellular automaton [cellular-automaton]";
|
description = "Enable cellular automaton [cellular-automaton]";
|
||||||
default = false;
|
default = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
mappings = {
|
||||||
|
makeItRain = mkMappingOption "Make it rain [cellular-automaton]" "<leader>fml";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
fidget-nvim = {
|
fidget-nvim = {
|
||||||
enable = mkOption {
|
enable = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
|
|
Loading…
Reference in a new issue