Skip to content

Commit

Permalink
Add startup theme. Add bufferline. Add nord theme.
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-j-ibanez committed Mar 16, 2024
1 parent 18b1340 commit 3c8408d
Show file tree
Hide file tree
Showing 7 changed files with 124 additions and 7 deletions.
2 changes: 1 addition & 1 deletion init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
75 changes: 75 additions & 0 deletions lua/startup/themes/yerba_theme.lua
Original file line number Diff line number Diff line change
@@ -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", "<leader>ff" },
{ "󰍉 Find Word", "Telescope live_grep", "<leader>lg" },
{ " Recent Files", "Telescope oldfiles", "<leader>of" },
{ " File Browser", "Telescope file_browser", "<leader>fb" },
{ " Colorschemes", "Telescope colorscheme", "<leader>cs" },
{ " New File", "lua require'startup'.new_file()", "<leader>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 = "<CR>",
open_file = "o",
open_file_split = "<c-o>",
open_section = "<TAB>",
open_help = "?",
},
colors = {
background = "#1f2227",
folded_section = "#56b6c2",
},
parts = { "header", "body", "footer" },
}
return settings
5 changes: 3 additions & 2 deletions lua/zzz/lazy.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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")
24 changes: 24 additions & 0 deletions lua/zzz/plugins/bufferline.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
return {
-- using lazy.nvim
'akinsho/bufferline.nvim',
version = "*",
dependencies = 'nvim-tree/nvim-web-devicons',
event = "VeryLazy",
keys = {
{ "<Tab>", "<Cmd>BufferLineCycleNext<CR>", desc = "Next tab" },
{ "<S-Tab>", "<Cmd>BufferLineCyclePrev<CR>", 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
}
19 changes: 17 additions & 2 deletions lua/zzz/plugins/colorscheme.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 3 additions & 1 deletion lua/zzz/plugins/lualine.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ return {
"nvim-lualine/lualine.nvim",
lazy = false,
config = function()
require('lualine').setup()
require('lualine').setup {
theme = 'nordic'
}
end,
}
2 changes: 1 addition & 1 deletion lua/zzz/plugins/startup.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 3c8408d

Please sign in to comment.