Skip to content

LucasTavaresA/headers.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

headers.nvim

Zero-config header/footer warnings.

Turn on notifications in Breaking Changes if using this plugin.

Contents

Installation

packer.nvim:

use {
	"lucastavaresa/headers.nvim",
	config = function()
		require("headers").setup()
	end,
}

lazy.nvim:

{
	"lucastavaresa/headers.nvim",
	config = function ()
		require("headers").setup()
	end,
}

Keybindings

There is no keybindings by default.

Those are all the available functions:

-- Prepends/Appends the hovered header/footer
vim.keymap.set("n", "<space>H", require("headers").fix_hovered)

Options

The setup function receives a table with the options, these are the default values:

{
	paths_file = vim.fn.stdpath("data") .. "/headers.nvim/paths.lua",
	non_code = { "sh", "zsh", "bash", "fish", "vim", "markdown", "txt", "json", "yaml", "toml", "ini", "html", "css", "sql", "xml", "cmake", "make", "diff", "patch", "git", "gitcommit", "gitconfig", "gitignore", "gitattributes", },
}

About

Zero-config header/footer warnings.

Topics

Resources

License

Stars

Watchers

Forks

Languages