added 42 coding stuff
This commit is contained in:
1
init.lua
1
init.lua
@@ -1,3 +1,4 @@
|
||||
require("config.keymaps")
|
||||
require("config.options")
|
||||
require("config.lazy")
|
||||
|
||||
|
||||
@@ -13,3 +13,4 @@ vim.opt.tabstop = 4
|
||||
vim.opt.expandtab = false
|
||||
|
||||
vim.opt.cmdheight = 0
|
||||
|
||||
|
||||
11
lua/plugins/42formatter.lua
Normal file
11
lua/plugins/42formatter.lua
Normal 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
15
lua/plugins/42header.lua
Normal 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,
|
||||
}
|
||||
@@ -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" },
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user