mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-01-07 11:17:15 +00:00
plugin/vimtex cleanup for pull request
This commit is contained in:
parent
872f024d5b
commit
294d658e78
3 changed files with 10 additions and 9 deletions
|
|
@ -510,3 +510,8 @@
|
||||||
|
|
||||||
- Add inline typst concealing support under `vim.languages.typst` using
|
- Add inline typst concealing support under `vim.languages.typst` using
|
||||||
[typst-concealer].
|
[typst-concealer].
|
||||||
|
|
||||||
|
[mugaizzo](https://github.com/mugaizzo):
|
||||||
|
|
||||||
|
- Add [VimTeX](https://github.com/lervag/vimtex) plugin in `vim.latex.vimtex` with
|
||||||
|
`enable`. VimTeX options are set using global options `vim.globals.vimtex_OPTION`.
|
||||||
|
|
|
||||||
|
|
@ -4,18 +4,10 @@
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (lib.modules) mkIf;
|
inherit (lib.modules) mkIf;
|
||||||
# inherit (lib.nvim.dag) entryAnywhere;
|
|
||||||
# inherit (lib.nvim.lua) toLuaObject;
|
|
||||||
|
|
||||||
cfg = config.vim.latex.vimtex;
|
cfg = config.vim.latex.vimtex;
|
||||||
in {
|
in {
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
vim.startPlugins = ["vimtex"];
|
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})
|
|
||||||
# '';
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,11 @@
|
||||||
inherit (lib.nvim.types) mkPluginSetupOption;
|
inherit (lib.nvim.types) mkPluginSetupOption;
|
||||||
in {
|
in {
|
||||||
options.vim.latex.vimtex = {
|
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" {
|
setupOpts = mkPluginSetupOption "vimtex" {
|
||||||
vimtex_view_method = mkOption {
|
vimtex_view_method = mkOption {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue