Code::Stats plugin for Neovim.
: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 for 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