Something went wrong. Try again.
forked from nix-community/nixvim
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738{ lib, ...}:let inherit (lib) types;inlib.nixvim.plugins.mkVimPlugin { name = "quickmath"; package = "quickmath-nvim"; description = "A simple plugin to do live calculations in Neovim.";
maintainers = [ lib.maintainers.GaetanLepage ];
extraOptions = { keymap = { key = lib.nixvim.mkNullOrOption types.str "Keymap to run the `:Quickmath` command.";
silent = lib.mkOption { type = types.bool; description = "Whether the quickmath keymap should be silent."; default = false; }; }; };
extraConfig = cfg: { keymaps = with cfg.keymap; lib.optional (key != null) { mode = "n"; inherit key; action = "<CMD>Quickmath<CR>"; options.silent = cfg.keymap.silent; }; };}