From 3c8408d6d27cdd85c866b1f51f30a479f3f5931b Mon Sep 17 00:00:00 2001 From: Sebastian Ibanez Date: Sat, 16 Mar 2024 13:16:03 -0400 Subject: [PATCH] Add startup theme. Add bufferline. Add nord theme. --- init.lua | 2 +- lua/startup/themes/yerba_theme.lua | 75 ++++++++++++++++++++++++++++++ lua/zzz/lazy.lua | 5 +- lua/zzz/plugins/bufferline.lua | 24 ++++++++++ lua/zzz/plugins/colorscheme.lua | 19 +++++++- lua/zzz/plugins/lualine.lua | 4 +- lua/zzz/plugins/startup.lua | 2 +- 7 files changed, 124 insertions(+), 7 deletions(-) create mode 100644 lua/startup/themes/yerba_theme.lua create mode 100644 lua/zzz/plugins/bufferline.lua diff --git a/init.lua b/init.lua index 5026131..a01fa11 100644 --- a/init.lua +++ b/init.lua @@ -3,6 +3,6 @@ require("zzz.lazy") -- If using Windows, -- Set shell to Powershell -if jit.os == "Windows" then +if jit.os == "Windows" then vim.o.shell = "powershell" end diff --git a/lua/startup/themes/yerba_theme.lua b/lua/startup/themes/yerba_theme.lua new file mode 100644 index 0000000..1565a59 --- /dev/null +++ b/lua/startup/themes/yerba_theme.lua @@ -0,0 +1,75 @@ +local settings = { + -- every line should be same width without escaped \ + header = { + type = "text", + oldfiles_directory = false, + align = "center", + fold_section = false, + title = "Header", + margin = 5, + content = { + "██╗ ██╗███████╗██████╗ ██████╗ █████╗ ██╗ ██╗██╗███╗ ███╗", + "╚██╗ ██╔╝██╔════╝██╔══██╗██╔══██╗██╔══██╗██║ ██║██║████╗ ████║", + " ╚████╔╝ █████╗ ██████╔╝██████╔╝███████║██║ ██║██║██╔████╔██║", + " ╚██╔╝ ██╔══╝ ██╔══██╗██╔══██╗██╔══██║╚██╗ ██╔╝██║██║╚██╔╝██║", + " ██║ ███████╗██║ ██║██████╔╝██║ ██║ ╚████╔╝ ██║██║ ╚═╝ ██║", + " ╚═╝ ╚══════╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝ ╚═══╝ ╚═╝╚═╝ ╚═╝", + }, + highlight = "Statement", + default_color = "", + oldfiles_amount = 0, + }, + -- name which will be displayed and command + body = { + type = "mapping", + oldfiles_directory = false, + align = "center", + fold_section = false, + title = "Basic Commands", + margin = 5, + content = { + { " Find File", "Telescope find_files", "ff" }, + { "󰍉 Find Word", "Telescope live_grep", "lg" }, + { " Recent Files", "Telescope oldfiles", "of" }, + { " File Browser", "Telescope file_browser", "fb" }, + { " Colorschemes", "Telescope colorscheme", "cs" }, + { " New File", "lua require'startup'.new_file()", "nf" }, + }, + highlight = "String", + default_color = "", + oldfiles_amount = 0, + }, + footer = { + type = "text", + oldfiles_directory = false, + align = "center", + fold_section = false, + title = "Footer", + margin = 5, + content = { "startup.nvim" }, + highlight = "Number", + default_color = "", + oldfiles_amount = 0, + }, + + options = { + mapping_keys = true, + cursor_column = 0.5, + empty_lines_between_mappings = true, + disable_statuslines = true, + paddings = { 1, 3, 3, 0 }, + }, + mappings = { + execute_command = "", + open_file = "o", + open_file_split = "", + open_section = "", + open_help = "?", + }, + colors = { + background = "#1f2227", + folded_section = "#56b6c2", + }, + parts = { "header", "body", "footer" }, +} +return settings diff --git a/lua/zzz/lazy.lua b/lua/zzz/lazy.lua index cb4e270..49a1530 100644 --- a/lua/zzz/lazy.lua +++ b/lua/zzz/lazy.lua @@ -15,8 +15,9 @@ vim.opt.rtp:prepend(lazypath) require("lazy").setup("zzz.plugins") -- Specify startup theme --- Default: bamboo -vim.cmd([[colorscheme poimandres]]) +-- Replace ??? with the desired theme name +-- Default: nord +-- vim.cmd([[colorscheme ???]]) -- Enable transparency vim.cmd("TransparentEnable") diff --git a/lua/zzz/plugins/bufferline.lua b/lua/zzz/plugins/bufferline.lua new file mode 100644 index 0000000..a112cf0 --- /dev/null +++ b/lua/zzz/plugins/bufferline.lua @@ -0,0 +1,24 @@ +return { + -- using lazy.nvim + 'akinsho/bufferline.nvim', + version = "*", + dependencies = 'nvim-tree/nvim-web-devicons', + event = "VeryLazy", + keys = { + { "", "BufferLineCycleNext", desc = "Next tab" }, + { "", "BufferLineCyclePrev", desc = "Prev tab" }, + }, + opts = { + mode = 'tabs', + show_buffer_close_icods = false, + show_close_icon = false, + }, + config = function() + vim.opt.termguicolors = true + require('bufferline').setup ({ + options = { + seperator_style = 'thin', + }, + }) + end +} diff --git a/lua/zzz/plugins/colorscheme.lua b/lua/zzz/plugins/colorscheme.lua index c24928b..74f5ccb 100644 --- a/lua/zzz/plugins/colorscheme.lua +++ b/lua/zzz/plugins/colorscheme.lua @@ -3,15 +3,30 @@ return { { "EdenEast/nightfox.nvim", }, - -- Poimandres + --Nord { - 'olivercederborg/poimandres.nvim', + "shaunsingh/nord.nvim", lazy = false, priority = 1000, + config = function() + vim.g.nord_borders = true + vim.g.nord_disable_background = true + vim.g.nord_italic = false + vim.g.nord_cursorline_transparent = true + require('nord').set() + end, + }, + -- Poimandres + { + 'olivercederborg/poimandres.nvim', config = function() require('poimandres').setup { } end, }, + -- Rasmus + { + 'kvrohit/rasmus.nvim', + }, -- Tokyonight { "folke/tokyonight.nvim", diff --git a/lua/zzz/plugins/lualine.lua b/lua/zzz/plugins/lualine.lua index 6098b15..48b3582 100644 --- a/lua/zzz/plugins/lualine.lua +++ b/lua/zzz/plugins/lualine.lua @@ -2,6 +2,8 @@ return { "nvim-lualine/lualine.nvim", lazy = false, config = function() - require('lualine').setup() + require('lualine').setup { + theme = 'nordic' + } end, } diff --git a/lua/zzz/plugins/startup.lua b/lua/zzz/plugins/startup.lua index c754cc1..781a6b2 100644 --- a/lua/zzz/plugins/startup.lua +++ b/lua/zzz/plugins/startup.lua @@ -2,6 +2,6 @@ return { "startup-nvim/startup.nvim", requires = {"nvim-telescope/telescope.nvim", "nvim-lua/plenary.nvim"}, config = function() - require"startup".setup() + require"startup".setup({ theme = 'yerba_theme'}) end }