mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2025-12-25 18:50:03 +01:00
fix/vimtex options are globals
This commit is contained in:
parent
1ffd6f7045
commit
872f024d5b
2 changed files with 8 additions and 8 deletions
|
|
@ -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})
|
||||
# '';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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" {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue