Skip to content

Small plugin to help the NeoVim users of 42 schools with following the Norm

Notifications You must be signed in to change notification settings

EyzeCOLD/nvim-function-linecount

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

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"
}

About

Small plugin to help the NeoVim users of 42 schools with following the Norm

Topics

Resources

Stars

Watchers

Forks

Languages