diff options
| author | Joshua Liu <joshua.liu@sourceobby.com> | 2026-07-18 11:02:06 -0400 |
|---|---|---|
| committer | Joshua Liu <joshua.liu@sourceobby.com> | 2026-07-18 11:02:06 -0400 |
| commit | 6e21f45dfc0d76259b77b3c21d42fcde16027867 (patch) | |
| tree | 9f83c2a7504b779fa5e6b858f28b7c1d4b395679 | |
| parent | 10766635d7204490b2d9b96189aacf9c2c723835 (diff) | |
feat: fixed my stupid mistake, also set up the single latex document word count command
| -rw-r--r-- | plugin/latex-wordcount.vim | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/plugin/latex-wordcount.vim b/plugin/latex-wordcount.vim index 098573f..1ea85fe 100644 --- a/plugin/latex-wordcount.vim +++ b/plugin/latex-wordcount.vim @@ -7,13 +7,21 @@ " Prevents the plugin from being loaded multiple times. If the loaded " variable exists, do nothing more. Otherwise, assign the loaded " variable and continue running this instance of the plugin. -if exists("g:loaded_latex-wordcount") +if exists("g:loaded_latex_wordcount") finish endif -let g:loaded_latex-wordcount = 1 +let g:loaded_latex_wordcount = 1 " Exposes the plugin's functions for use as commands in Vim. command! -nargs=0 GetWordCountSingle call latex-wordcount#GetWordCountSingle() command! -nargs=0 GetWordCountMulti call latex-wordcount#GetWordCountMulti() "command! -nargs=0 AspellCheck call latex-wordcount#AspellCheck() + +if !exists('g:json_path') + let g:json_path= "~/.config" +endif +" +"if !exists('g:my_plugin_max_items') +" let g:my_plugin_max_items = 50 +"endif |
