42header, colorscheme, and some other tweaks

This commit is contained in:
Willem Haffmans 2024-07-25 16:19:48 +02:00
parent 2dfa9c9a9e
commit 1a78a7783d
3 changed files with 75 additions and 6 deletions

View File

@ -0,0 +1,45 @@
return {
{
'Diogo-ss/42-header.nvim',
cmd = { 'Stdheader' },
keys = { '<F1>' },
opts = {
---Max header size (not recommended change).
--length = 80,
---Header margin (not recommended change).
--margin = 5,
---Activate default mapping (e.g. F1).
default_map = false,
---Enable auto-update of headers.
auto_update = true,
---Default user.name.
user = 'whaffman',
---Default user.email.
mail = 'whaffman@student.codam.nl',
---ASCII art.
asciiart = {
' ::: o_ :::::: :::',
' :+: / :+::+: :+: ',
' +:+ > +:++:+ +:+ ',
' +#+ +:+ +#++#++:++#++ ',
' +#+ +#+#+ +#++#+ +#+ \\o/',
' #+#+# #+#+# #+# #+# | ',
' ### ### ### ### / \\',
},
---Git config.
git = {
---Enable Git support.
enabled = false,
---PATH to the Git binary.
bin = 'git',
---Use global user.name, otherwise use local user.name.
user_global = true,
---Use global user.email, otherwise use local user.email.
email_global = true,
},
},
config = function(_, opts)
require('42header').setup(opts)
end,
},
}

View File

@ -1,3 +1,4 @@
--[[
return {
{ -- You can easily change to a different colorscheme.
-- Change the name of the colorscheme plugin below, and then
@ -17,4 +18,28 @@ return {
end,
},
}
--]]
return {
{
'neanias/everforest-nvim',
version = false,
lazy = false,
priority = 1000, -- make sure to load this before all the other start plugins
-- Optional; default configuration will be used if setup isn't called.
config = function()
require('everforest').setup {
-- Your config here
background = 'hard',
italics = true,
-- sign_column_background = 'grey',
-- ui_contrast = 'high',
}
end,
init = function()
vim.cmd.colorscheme 'everforest'
end,
},
}
-- vim: ts=2 sts=2 sw=2 et

View File

@ -20,7 +20,6 @@ require('lazy').setup({
-- Use `opts = {}` to force a plugin to be loaded.
--
-- modular approach: using `require 'path/name'` will
-- include a plugin definition from file lua/path/name.lua
@ -36,7 +35,7 @@ require('lazy').setup({
require 'kickstart/plugins/cmp',
require 'kickstart/plugins/tokyonight',
-- require 'kickstart/plugins/tokyonight',
require 'kickstart/plugins/todo-comments',
@ -53,18 +52,18 @@ require('lazy').setup({
-- Here are some example plugins that I've included in the Kickstart repository.
-- Uncomment any of the lines below to enable them (you will need to restart nvim).
--
-- require 'kickstart.plugins.debug',
require 'kickstart.plugins.debug',
-- require 'kickstart.plugins.indent_line',
-- require 'kickstart.plugins.lint',
-- require 'kickstart.plugins.autopairs',
-- require 'kickstart.plugins.neo-tree',
require 'kickstart.plugins.autopairs',
require 'kickstart.plugins.neo-tree',
-- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua`
-- This is the easiest way to modularize your config.
--
-- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going.
-- For additional information, see `:help lazy.nvim-lazy.nvim-structuring-your-plugins`
-- { import = 'custom.plugins' },
{ import = 'custom.plugins' },
}, {
ui = {
-- If you are using a Nerd Font: set icons to an empty table which will use the