imported header42

This commit is contained in:
Roman Volovoy
2026-06-22 14:15:48 +02:00
parent d4be0bbc8a
commit 48fdfaeb2c
5 changed files with 34 additions and 3 deletions
@@ -1,3 +1,4 @@
require("romanzy.plugins.rose-pine")
require("romanzy.plugins.nvim-treesitter")
require("romanzy.plugins.lsp")
require("romanzy.plugins.header42")
@@ -0,0 +1,27 @@
vim.pack.add({
{ src = "https://codeberg.org/42nerds/header42.nvim" },
})
local function load_header42()
-- Prevent double loading
if _G.header42_loaded then return end
_G.header42_loaded = true
-- Configure the plugin
require("header42").setup({
-- autocmd = { create = false },
username = "rvolovoy",
email = "rvolovoy@student.codam.nl",
})
end
-- load it right away
-- load_header42();
vim.api.nvim_create_autocmd("FileType", {
pattern = { "c", "cpp", "python" },
once = true,
callback = function()
load_header42()
end,
})