Headers
Native generator
Section titled “Native generator”dogshitnorm can insert the standard 80-column 42 header for:
.c.h.cpp.hppMakefile
It no longer needs 42Paris/42header for this workflow.
Commands
Section titled “Commands”:Stdheaderinserts or refreshes the header in the current buffer:StdheaderAll [path]inserts or refreshes headers recursively for supported files under a project tree:HeaderToggletoggles the visual styling layer:HeaderHide [toggle|on|off]folds the real header out of the active window while keeping it in the file:Protoheaderinserts the selected or current.cfunction prototype into the resolved header file
Save-time update
Section titled “Save-time update”With update_42_header = true, saving a buffer updates the Updated: line while preserving the original Created: timestamp.
Visual styling
Section titled “Visual styling”The visual styling from fancy-header.nvim is merged into dogshitnorm. Configure it with:
header_style_enabledheader_style_keybindingheader_colors
Example:
header_colors = { box = { fg = "#6e6a86" }, filename = { fg = "#f6c177", bold = true }, author = { fg = "#9ccfd8" }, date = { fg = "#c4a7e7" }, logo_42 = { start = "#eb6f92", end_ = "#31748f" },}Hidden view and line numbers
Section titled “Hidden view and line numbers”Use these options if you want the header to stay in the file for norminette, but not get in your way while editing:
header_hide_enabled = true,header_hide_keybinding = "<leader>4H",prototype_header_keybinding = "<leader>cp",header_line_number_offset = true,With header_hide_enabled = true, the header is folded out of the current window and buffer-local gg jumps to the first non-header line. With header_line_number_offset = true, gutter numbers start at 1 on the first non-header line instead of counting the 42 header.