added 42 coding stuff

This commit is contained in:
2025-11-18 14:50:52 +01:00
parent 01d3401ad9
commit ba5103f696
6 changed files with 33 additions and 2 deletions

View File

@@ -13,3 +13,4 @@ vim.opt.tabstop = 4
vim.opt.expandtab = false
vim.opt.cmdheight = 0

View File

@@ -0,0 +1,11 @@
return {
"Diogo-ss/42-C-Formatter.nvim",
cmd = "CFormat42",
config = function()
local formatter = require "42-formatter"
formatter.setup({
formatter = 'python -m c_formatter_42',
filetypes = { c = true, h = true, cpp = true, hpp = true },
})
end
}

15
lua/plugins/42header.lua Normal file
View File

@@ -0,0 +1,15 @@
return {
"Diogo-ss/42-header.nvim",
cmd = { "Stdheader" },
keys = { "<F1>" },
opts = {
default_map = true, -- Default mapping <F1> in normal mode.
auto_update = true, -- Update header when saving.
user = "mbonnard", -- Your user.
mail = "mbonnard@student.42angouleme.fr", -- Your mail.
-- add other options.
},
config = function(_, opts)
require("42header").setup(opts)
end,
}

View File

@@ -25,5 +25,8 @@ return {
keys = {
{ "<S-h>", "<cmd>BufferLineCyclePrev<cr>", desc = "Prev Buffer" },
{ "<S-l>", "<cmd>BufferLineCycleNext<cr>", desc = "Next Buffer" },
{ "<leader>bd", function ()
Snacks.bufdelete(n)
end, desc = "Next Buffer" },
}
}

View File

@@ -21,8 +21,8 @@ return {
{
'neovim/nvim-lspconfig',
config = function()
local lspconfig = require 'lspconfig'
lspconfig.harper_ls.setup { filetypes = { 'markdown' } }
-- local lspconfig = require 'lspconfig'
vim.lsp.config('harper_ls', { filetypes = { 'markdown' }})
end,
},
}