From 04dfd76d4aea0a84c837d768a0d7692295f24966 Mon Sep 17 00:00:00 2001 From: Joshua Liu Date: Sun, 2 Aug 2026 23:13:15 -0400 Subject: feat: making this fucking POS work. apparently I needed the autoload directory and cannot use hyphens in the name --- plugin/latex-wordcount.vim | 27 --------------------------- plugin/latex_wordcount.vim | 22 ++++++++++++++++++++++ 2 files changed, 22 insertions(+), 27 deletions(-) delete mode 100644 plugin/latex-wordcount.vim create mode 100644 plugin/latex_wordcount.vim (limited to 'plugin') diff --git a/plugin/latex-wordcount.vim b/plugin/latex-wordcount.vim deleted file mode 100644 index 1ea85fe..0000000 --- a/plugin/latex-wordcount.vim +++ /dev/null @@ -1,27 +0,0 @@ -" Title: latex-wordcount.vim -" Description: A plugin to provide a more accurate wordcount of a LaTeX -" document -" Last Change: 14 July, 2026 -" Maintainer: Joshua Liu - -" 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") - finish -endif -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 - diff --git a/plugin/latex_wordcount.vim b/plugin/latex_wordcount.vim new file mode 100644 index 0000000..c1c2ff6 --- /dev/null +++ b/plugin/latex_wordcount.vim @@ -0,0 +1,22 @@ +" Title: latex_wordcount.vim +" Description: A plugin to provide a more accurate wordcount of a LaTeX +" document +" Last Change: 14 July, 2026 +" Maintainer: Joshua Liu + +" 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") + finish +endif +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() + +if !exists('g:json_path') + let g:json_path= "~/.config/nvim/cmds.json" +endif + -- cgit v1.2.3