Skip to content

abellaismail7/42header.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

42 Header

1337 (Khouribga)

Showcase

Screenshot

Description

42 standard header for nvim/lua editor.

UNIX Setup

Packer is recommended:

use 'abellaismail7/42header.nvim'

I assume that you have two env variables:

$USER="bella" # For your username
$USER_MAIL="bella@example.com" # For your mail

Usage

In Normal mode you can use :Ftheader.

you might want to map it to a convient key. nvim supplies a list of key notations with the command :h key-notation.

vim.api.nvim_set_keymap('n', '<leader>h', ': Ftheader', {noremap = true})

For auto header update Updated : ... you should add this to your config

vim.cmd("autocmd BufWritePre * :Ftupdate")

For manual update:

:Ftupdate