LucasTavaresA/headers.nvim

github github
project
stars 3
issues 2
subscribers 1
forks 0
CREATED

UPDATED


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