neovim-flake/modules/plugins/latex/vimtex/vimtex.nix

44 lines
1 KiB
Nix
Raw Normal View History

2025-11-13 23:47:12 -07:00
{lib, ...}: let
inherit (lib.options) mkEnableOption mkOption;
inherit (lib.types) bool str listOf;
inherit (lib.nvim.types) mkPluginSetupOption;
in {
2025-11-14 00:41:35 -07:00
options.vim.latex.vimtex = {
2025-11-14 12:53:07 -07:00
enable = mkEnableOption ''
2025-11-14 12:54:19 -07:00
VimTeX is a modern Vim and Neovim filetype and syntax plugin for LaTeX files.
2025-11-14 12:53:07 -07:00
2025-11-14 12:54:19 -07:00
VimTeX options are under vim.global.vimtex_OPTION
2025-11-14 12:53:07 -07:00
'';
2025-11-13 23:47:12 -07:00
setupOpts = mkPluginSetupOption "vimtex" {
vimtex_view_method = mkOption {
type = str;
default = "zathura";
description = ''
The pdf viewer to be used
The default value is "zathura"
'';
};
vimtex_syntax_enabled = mkOption {
type = bool;
default = false;
description = ''
vimtex syntax enabled
2025-11-13 23:47:12 -07:00
The default value is false'';
2025-11-13 23:47:12 -07:00
};
vimtex_quickfix_ignore_filters = mkOption {
type = listOf str;
default = [];
description = ''
vimtex quickfix ignore filters
2025-11-13 23:47:12 -07:00
The default value is []'';
2025-11-13 23:47:12 -07:00
};
};
};
}