imported header42
This commit is contained in:
1
nvim/.config/nvim/after/ftplugin/c.lua
Normal file
1
nvim/.config/nvim/after/ftplugin/c.lua
Normal file
@@ -0,0 +1 @@
|
||||
vim.opt_local.textwidth = 80
|
||||
@@ -1,3 +1 @@
|
||||
require("romanzy")
|
||||
|
||||
-- print("custom config initialized")
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
require("romanzy.plugins.rose-pine")
|
||||
require("romanzy.plugins.nvim-treesitter")
|
||||
require("romanzy.plugins.lsp")
|
||||
require("romanzy.plugins.header42")
|
||||
|
||||
27
nvim/.config/nvim/lua/romanzy/plugins/header42.lua
Normal file
27
nvim/.config/nvim/lua/romanzy/plugins/header42.lua
Normal 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,
|
||||
})
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user