Plugin that wraps the texcount utility to check the frequency of the words used in a
- Color-coded highlights based on word frequency.
- Jump to any occurrence of a word directly from the frequency window.
- Add/remove words from a per-project ignore list.
- lazy:
{
"MarcosLopezM/texcount.nvim",
ft = { "tex", "plaintex" },
config = function()
require("texcount").setup({
min_freq = 2, -- minimum frequency to display a word
keymaps = {
run = "<leader>tc",
add = "<leader>ta",
delete = "<leader>td",
},
})
end,
}| Command | Description |
|---|---|
:TexCount |
Run texcount on the current file |
:TexCountAddIgnore |
Add word under cursor to the ignore list |
:TexCountDeleteIgnore |
Remove word under cursor from ignore list |
| Key | Action |
|---|---|
t |
Toggle between top 15 and all words |
i |
Show the words been ignored |
<CR> |
Jump to word occurrence |
q |
Close window |
<Esc> |
Close window |
Words can be ignored globally or per project. TexCount looks for an ignore.txt file
in the current working directory first, falling back to ~/.local/share/nvim/ignore.txt.