1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-12-12 12:01:10 +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

@ -1,15 +1,14 @@
{ lib, pkgs, ... }:
with lib;
lib.nixvim.plugins.mkVimPlugin {
name = "vimtex";
globalPrefix = "vimtex_";
description = "A modern Vim and Neovim plugin for writing LaTeX documents.";
maintainers = [ maintainers.GaetanLepage ];
maintainers = [ lib.maintainers.GaetanLepage ];
settingsOptions = {
view_method = mkOption {
type = types.str;
view_method = lib.mkOption {
type = lib.types.str;
default = "general";
example = "zathura";
description = ''
@ -64,7 +63,7 @@ lib.nixvim.plugins.mkVimPlugin {
extraPackages =
let
# xdotool does not exist on darwin
xdotool = optional pkgs.stdenv.isLinux cfg.xdotoolPackage;
xdotool = lib.optional pkgs.stdenv.isLinux cfg.xdotoolPackage;
viewerPackages =
{
general = xdotool;