plugin/vimtex cleanup for pull request

This commit is contained in:
mugaizzo 2025-11-14 12:53:07 -07:00
commit 294d658e78
3 changed files with 10 additions and 9 deletions

View file

@ -4,18 +4,10 @@
...
}: let
inherit (lib.modules) mkIf;
# inherit (lib.nvim.dag) entryAnywhere;
# inherit (lib.nvim.lua) toLuaObject;
cfg = config.vim.latex.vimtex;
in {
config = mkIf cfg.enable {
vim.startPlugins = ["vimtex"];
# vim.pluginRC.vimtex = entryAnywhere ''
# -- Description of each option can be found in https://github.com/lervag/vimtex
# -- Current nvf options are minimal, contribute your needed options
# -- require("vimtex").setup(${toLuaObject cfg.setupOpts})
# '';
};
}

View file

@ -4,7 +4,11 @@
inherit (lib.nvim.types) mkPluginSetupOption;
in {
options.vim.latex.vimtex = {
enable = mkEnableOption "VimTeX is a modern Vim and Neovim filetype and syntax plugin for LaTeX files.";
enable = mkEnableOption ''
VimTeX is a modern Vim and Neovim filetype and syntax plugin for LaTeX files.
VimTeX options are under vim.global.vimtex_OPTION
'';
setupOpts = mkPluginSetupOption "vimtex" {
vimtex_view_method = mkOption {