Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/creativecodecat/header.nvim


https://github.com/creativecodecat/header.nvim

Last synced: 1 day ago
JSON representation

Awesome Lists containing this project

README

        

# header.nvim

The header plugin written in Lua aims to quickly generate readable headers for several programming languages.

Additionally, it also automatically updates the last edited time.

## Installation

Just install using your package manager of choice:

```lua
use 'The-Repo-Club/header.nvim'
```

## Setup

```lua
local header = require('header')

header.setup({
user = 'Example',
mail = '[email protected]',
-- You can also extend filetypes, e.g:
ft = {
lua = {
start_comment = "--",
end_comment = "--",
fill_comment = "-",
}
}
})
```

## Supported Filetypes by Default

* `c` for C files
* `cpp` for C++ and header files
* `python` for python files
* `lua` for lua files
* `make` for Makefiles
* `vim` for vimscript files

## Mappings

header.nvim does not provide default mappings, but you can map a to the command `StrHeader`.

Although this plugins does not provide mappings, it sets up `autocmd` to update the header.