Skip to content

Files

Latest commit

 

History

History
31 lines (27 loc) · 626 Bytes

README.md

File metadata and controls

31 lines (27 loc) · 626 Bytes

This plugin counts how many lines every function in your .c file has by tracking lines with { and }.

screenshot

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);
}

Install with Lazy:

in ~/.config/nvim/init.lua add

require("nvim-function-linecount")

and in your ~.config/nvim/lua/plugins/ folder add

{
  "EyzeCOLD/nvim-function-linecount"
}