mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-01-07 11:17:15 +00:00
plugin/vimtex with options
This commit is contained in:
parent
09470524a2
commit
9f5ce6b55c
5 changed files with 85 additions and 0 deletions
21
modules/plugins/latex/vimtex/config.nix
Normal file
21
modules/plugins/latex/vimtex/config.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: 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})
|
||||
'';
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue