mirror of
https://github.com/nix-community/nixvim.git
synced 2025-12-12 20:11:08 +01:00
treewide: remove with lib;
This commit is contained in:
parent
cd0443e166
commit
629f9d75f8
67 changed files with 276 additions and 338 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue