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

View File

@@ -0,0 +1 @@
vim.opt_local.textwidth = 80

View File

@@ -1,3 +1 @@
require("romanzy")
-- print("custom config initialized")

View File

@@ -1,3 +1,4 @@
require("romanzy.plugins.rose-pine")
require("romanzy.plugins.nvim-treesitter")
require("romanzy.plugins.lsp")
require("romanzy.plugins.header42")

View File

@@ -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,
})

View File

@@ -1,5 +1,9 @@
{
"plugins": {
"header42.nvim": {
"rev": "d41468df1c53081c909fc78248cf233893b59809",
"src": "https://codeberg.org/42nerds/header42.nvim"
},
"mason-lspconfig.nvim": {
"rev": "21c5b3ebeaa0412e28096bb0701434c51c1fbf76",
"src": "https://github.com/mason-org/mason-lspconfig.nvim"
@@ -21,4 +25,4 @@
"src": "https://github.com/rose-pine/neovim"
}
}
}
}