mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-23 09:18:38 +02:00
plugins/texpresso: init
This commit is contained in:
parent
77efb038df
commit
e95f8e9ce4
3 changed files with 40 additions and 0 deletions
|
@ -70,6 +70,7 @@
|
|||
./languages/rustaceanvim.nix
|
||||
./languages/sniprun.nix
|
||||
./languages/tagbar.nix
|
||||
./languages/texpresso.nix
|
||||
./languages/treesitter/hmts.nix
|
||||
./languages/treesitter/rainbow-delimiters.nix
|
||||
./languages/treesitter/treesitter-context.nix
|
||||
|
|
33
plugins/languages/texpresso.nix
Normal file
33
plugins/languages/texpresso.nix
Normal file
|
@ -0,0 +1,33 @@
|
|||
{
|
||||
lib,
|
||||
helpers,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
# This plugin has no configuration, so we use `mkVimPlugin` without the `globalPrefix` argument to
|
||||
# avoid the creation of the `settings` option.
|
||||
helpers.vim-plugin.mkVimPlugin config {
|
||||
name = "texpresso";
|
||||
originalName = "texpresso.vim";
|
||||
defaultPackage = pkgs.vimPlugins.texpresso-vim;
|
||||
|
||||
maintainers = [maintainers.nickhu];
|
||||
|
||||
extraOptions = {
|
||||
texpressoPackage = mkOption {
|
||||
type = with types; nullOr package;
|
||||
default = pkgs.texpresso;
|
||||
example = null;
|
||||
description = ''
|
||||
The `texpresso` package to use.
|
||||
Set to `null` to not install any package.
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
extraConfig = cfg: {
|
||||
extraPackages = [cfg.texpressoPackage];
|
||||
};
|
||||
}
|
6
tests/test-sources/plugins/languages/texpresso.nix
Normal file
6
tests/test-sources/plugins/languages/texpresso.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{pkgs, ...}: {
|
||||
empty = {
|
||||
# texpresso is broken on darwin
|
||||
plugins.texpresso.enable = !pkgs.stdenv.isDarwin;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue