This plugin counts how many lines every function in your .c file has by tracking lines with {
and }
.
NOTE: as of now the following style is expected:
- function return type, identifier and arguments on one line
- curly braces always on their own lines
void func(int param)
{
if (!condition)
{
function_body();
return (1);
}
return (0);
}
in ~/.config/nvim/init.lua add
require("nvim-function-linecount")
and in your ~.config/nvim/lua/plugins/ folder add
{
"EyzeCOLD/nvim-function-linecount"
}