Code::Stats plugin for Neovim.
NOTE: upstream xml has been broken. use the fork before installing.
:Rocks install code-stats.nvim
~/.config/nvim/rocks.toml
:
[plugins]
"code-stats.nvim" = "scm"
Then
:Rocks sync
or:
$ luarocks --lua-version 5.1 --local --tree ~/.local/share/nvim/rocks install code-stats.nvim
# ~/.local/share/nvim/rocks is the default rocks tree path
# you can change it according to your vim.g.rocks_nvim.rocks_path
require"code-stats".setup({
args = {
headers = {
['X-API-Token'] = "XXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
}
}
})
For compatibility of code-stats-zsh and code-stats-bash, the following is also OK:
require"code-stats".setup({
dotenv = "/the/path/of/codestats.sh"
})
/the/path/of/codestats.sh
:
CODESTATS_API_KEY=XXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
For Nix user, run
/the/path/of/luarocks/rocks-5.1/code-stats.nvim/VERSION/scripts/update.sh
when
dynamic link libraries are broken after nix-collect-garbage -d
.