1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-12-10 19:11:08 +01:00

treewide: remove with lib;

This commit is contained in:
Gaetan Lepage 2025-12-07 12:28:40 +01:00 committed by Gaétan Lepage
parent cd0443e166
commit 629f9d75f8
67 changed files with 276 additions and 338 deletions

View file

@ -2,13 +2,15 @@
lib,
...
}:
with lib;
let
inherit (lib) types;
in
lib.nixvim.plugins.mkVimPlugin {
name = "typst-vim";
globalPrefix = "typst_";
description = "A Neovim plugin for Typst, a modern typesetting system.";
maintainers = [ maintainers.GaetanLepage ];
maintainers = [ lib.maintainers.GaetanLepage ];
imports = [
# TODO: added 2025-04-07, remove after 25.05
@ -22,7 +24,7 @@ lib.nixvim.plugins.mkVimPlugin {
extraOptions = {
keymaps = {
silent = mkOption {
silent = lib.mkOption {
type = types.bool;
description = "Whether typst-vim keymaps should be silent.";
default = false;
@ -41,7 +43,7 @@ lib.nixvim.plugins.mkVimPlugin {
options.silent = silent;
}
(
optional (watch != null) {
lib.optional (watch != null) {
# mode = "n";
key = watch;
action = ":TypstWatch<CR>";