Zero-config header/footer warnings.
Turn on notifications in Breaking Changes if using this plugin.
use {
"lucastavaresa/headers.nvim",
config = function()
require("headers").setup()
end,
}
{
"lucastavaresa/headers.nvim",
config = function ()
require("headers").setup()
end,
}
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)
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", },
}