From 1a78a7783d575018badc4e82e351099fd6e6fe15 Mon Sep 17 00:00:00 2001 From: Willem Haffmans Date: Thu, 25 Jul 2024 16:19:48 +0200 Subject: [PATCH] 42header, colorscheme, and some other tweaks --- lua/custom/plugins/42header.lua | 45 +++++++++++++++++++ .../plugins/colorscheme.lua} | 25 +++++++++++ lua/lazy-plugins.lua | 11 +++-- 3 files changed, 75 insertions(+), 6 deletions(-) create mode 100644 lua/custom/plugins/42header.lua rename lua/{kickstart/plugins/tokyonight.lua => custom/plugins/colorscheme.lua} (60%) diff --git a/lua/custom/plugins/42header.lua b/lua/custom/plugins/42header.lua new file mode 100644 index 0000000..0b7dd08 --- /dev/null +++ b/lua/custom/plugins/42header.lua @@ -0,0 +1,45 @@ +return { + { + 'Diogo-ss/42-header.nvim', + cmd = { 'Stdheader' }, + keys = { '' }, + 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, + }, +} diff --git a/lua/kickstart/plugins/tokyonight.lua b/lua/custom/plugins/colorscheme.lua similarity index 60% rename from lua/kickstart/plugins/tokyonight.lua rename to lua/custom/plugins/colorscheme.lua index 3e5e74d..fa98295 100644 --- a/lua/kickstart/plugins/tokyonight.lua +++ b/lua/custom/plugins/colorscheme.lua @@ -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 diff --git a/lua/lazy-plugins.lua b/lua/lazy-plugins.lua index f601d39..e1b8bc2 100644 --- a/lua/lazy-plugins.lua +++ b/lua/lazy-plugins.lua @@ -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