From 872f024d5bae772d49489d587e06c55903ce5245 Mon Sep 17 00:00:00 2001 From: mugaizzo Date: Fri, 14 Nov 2025 00:41:35 -0700 Subject: [PATCH] fix/vimtex options are globals --- modules/plugins/latex/vimtex/config.nix | 14 +++++++------- modules/plugins/latex/vimtex/vimtex.nix | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/modules/plugins/latex/vimtex/config.nix b/modules/plugins/latex/vimtex/config.nix index 62f52708..8e26e9df 100644 --- a/modules/plugins/latex/vimtex/config.nix +++ b/modules/plugins/latex/vimtex/config.nix @@ -4,18 +4,18 @@ ... }: let inherit (lib.modules) mkIf; - inherit (lib.nvim.dag) entryAnywhere; - inherit (lib.nvim.lua) toLuaObject; + # 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}) - ''; + # 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}) + # ''; }; } diff --git a/modules/plugins/latex/vimtex/vimtex.nix b/modules/plugins/latex/vimtex/vimtex.nix index d7556b3c..1fd96b13 100644 --- a/modules/plugins/latex/vimtex/vimtex.nix +++ b/modules/plugins/latex/vimtex/vimtex.nix @@ -3,7 +3,7 @@ inherit (lib.types) bool str listOf; inherit (lib.nvim.types) mkPluginSetupOption; in { - options.vim.latex = { + options.vim.latex.vimtex = { enable = mkEnableOption "VimTeX is a modern Vim and Neovim filetype and syntax plugin for LaTeX files."; setupOpts = mkPluginSetupOption "vimtex" {