add dashboard and goodies
This commit is contained in:
3
.gitmodules
vendored
3
.gitmodules
vendored
@@ -1,3 +1,6 @@
|
|||||||
[submodule "zsh/zsh-completions"]
|
[submodule "zsh/zsh-completions"]
|
||||||
path = zsh/zsh-completions
|
path = zsh/zsh-completions
|
||||||
url = https://github.com/zsh-users/zsh-completions.git
|
url = https://github.com/zsh-users/zsh-completions.git
|
||||||
|
[submodule "scripts/pokemon-colorscripts"]
|
||||||
|
path = scripts/pokemon-colorscripts
|
||||||
|
url = https://gitlab.com/phoneybadger/pokemon-colorscripts.git
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import = ["/home/ink/.config/alacritty/dracula.toml"]
|
import = ["~/.config/alacritty/dracula.toml"]
|
||||||
|
|
||||||
[font]
|
[font]
|
||||||
size = 12.0
|
size = 13.0
|
||||||
|
|
||||||
[font.bold]
|
[font.bold]
|
||||||
family = "jetbrainsmono nerd font"
|
family = "jetbrainsmono nerd font"
|
||||||
@@ -17,3 +18,6 @@ style = "Italic"
|
|||||||
[font.normal]
|
[font.normal]
|
||||||
family = "jetbrainsmono nerd font"
|
family = "jetbrainsmono nerd font"
|
||||||
style = "Regular"
|
style = "Regular"
|
||||||
|
|
||||||
|
[general]
|
||||||
|
import = ["~/.config/alacritty/dracula.toml"]
|
||||||
|
|||||||
@@ -111,7 +111,7 @@ return {
|
|||||||
format_on_save = {
|
format_on_save = {
|
||||||
lsp_fallback = true,
|
lsp_fallback = true,
|
||||||
async = false,
|
async = false,
|
||||||
timeout_ms = 500,
|
timeout_ms = 3000,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -119,7 +119,7 @@ return {
|
|||||||
conform.format({
|
conform.format({
|
||||||
lsp_fallback = true,
|
lsp_fallback = true,
|
||||||
async = false,
|
async = false,
|
||||||
timeout_ms = 500,
|
timeout_ms = 5000,
|
||||||
})
|
})
|
||||||
end, { desc = "Format file or range (in visual mode)" })
|
end, { desc = "Format file or range (in visual mode)" })
|
||||||
end,
|
end,
|
||||||
|
|||||||
@@ -1,104 +1,186 @@
|
|||||||
return {
|
return {
|
||||||
{ -- colorscheme
|
{ -- colorscheme
|
||||||
"Mofiqul/dracula.nvim",
|
"Mofiqul/dracula.nvim",
|
||||||
lazy = false,
|
lazy = false,
|
||||||
name = "dracula",
|
name = "dracula",
|
||||||
priority = 1000,
|
priority = 1000,
|
||||||
config = function()
|
config = function()
|
||||||
local dracula = require("dracula")
|
local dracula = require("dracula")
|
||||||
dracula.setup({
|
dracula.setup({
|
||||||
colors = {
|
colors = {
|
||||||
visual = "#5a5e77",
|
visual = "#5a5e77",
|
||||||
},
|
},
|
||||||
-- show the '~' characters after the end of buffers
|
-- show the '~' characters after the end of buffers
|
||||||
show_end_of_buffer = true, -- default false
|
show_end_of_buffer = true, -- default false
|
||||||
-- use transparent background
|
-- use transparent background
|
||||||
transparent_bg = false, -- default false
|
transparent_bg = false, -- default false
|
||||||
-- set custom lualine background color
|
-- set custom lualine background color
|
||||||
lualine_bg_color = "#44475a", -- default nil
|
lualine_bg_color = "#44475a", -- default nil
|
||||||
-- set italic comment
|
-- set italic comment
|
||||||
italic_comment = true, -- default false
|
italic_comment = true, -- default false
|
||||||
-- overrides the default highlights with table see `:h synIDattr`
|
-- overrides the default highlights with table see `:h synIDattr`
|
||||||
overrides = {
|
overrides = {
|
||||||
CursorLine = { bg = "#3e4153" },
|
CursorLine = { bg = "#3e4153" },
|
||||||
CursorLineNr = { fg = "DarkOrange", bold = true },
|
CursorLineNr = { fg = "DarkOrange", bold = true },
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
vim.cmd [[colorscheme dracula-soft]]
|
vim.cmd([[colorscheme dracula-soft]])
|
||||||
end
|
end,
|
||||||
},
|
},
|
||||||
-- highlight color hex codes
|
-- highlight color hex codes
|
||||||
{
|
{
|
||||||
"brenoprata10/nvim-highlight-colors",
|
"brenoprata10/nvim-highlight-colors",
|
||||||
opts = {},
|
opts = {},
|
||||||
config = function()
|
config = function()
|
||||||
local highlight = require("nvim-highlight-colors")
|
local highlight = require("nvim-highlight-colors")
|
||||||
highlight.setup()
|
highlight.setup()
|
||||||
end
|
end,
|
||||||
},
|
},
|
||||||
{ --statusline
|
{ --statusline
|
||||||
"nvim-lualine/lualine.nvim",
|
"nvim-lualine/lualine.nvim",
|
||||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||||
lazy = false,
|
lazy = false,
|
||||||
opts = {
|
opts = {
|
||||||
options = {
|
options = {
|
||||||
section_separators = "",
|
section_separators = "",
|
||||||
component_separators = "",
|
component_separators = "",
|
||||||
theme = "dracula-nvim"
|
theme = "dracula-nvim",
|
||||||
},
|
},
|
||||||
-- extensions = { "neo-tree", "lazy", "fzf" },
|
-- extensions = { "neo-tree", "lazy", "fzf" },
|
||||||
extensions = { "fugitive", "lazy" },
|
extensions = { "fugitive", "lazy" },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{ -- git symbols on sidebar
|
{ -- git symbols on sidebar
|
||||||
"lewis6991/gitsigns.nvim",
|
"lewis6991/gitsigns.nvim",
|
||||||
opts = {
|
opts = {
|
||||||
signs = {
|
signs = {
|
||||||
add = { text = "+" },
|
add = { text = "+" },
|
||||||
change = { text = "~" },
|
change = { text = "~" },
|
||||||
delete = { text = "_" },
|
delete = { text = "_" },
|
||||||
topdelete = { text = "‾" },
|
topdelete = { text = "‾" },
|
||||||
changedelete = { text = "~" },
|
changedelete = { text = "~" },
|
||||||
},
|
},
|
||||||
signs_staged = {
|
signs_staged = {
|
||||||
add = { text = "+" },
|
add = { text = "+" },
|
||||||
change = { text = "~" },
|
change = { text = "~" },
|
||||||
delete = { text = "_" },
|
delete = { text = "_" },
|
||||||
topdelete = { text = "‾" },
|
topdelete = { text = "‾" },
|
||||||
changedelete = { text = "~" },
|
changedelete = { text = "~" },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{ -- cosmetic indent lines
|
{ -- cosmetic indent lines
|
||||||
"lukas-reineke/indent-blankline.nvim",
|
"lukas-reineke/indent-blankline.nvim",
|
||||||
main = "ibl",
|
main = "ibl",
|
||||||
opts = {
|
opts = {
|
||||||
indent = {
|
indent = {
|
||||||
char = "▏",
|
char = "▏",
|
||||||
},
|
},
|
||||||
scope = {
|
scope = {
|
||||||
show_start = false,
|
show_start = false,
|
||||||
show_end = false,
|
show_end = false,
|
||||||
show_exact_scope = false,
|
show_exact_scope = false,
|
||||||
},
|
},
|
||||||
exclude = {
|
exclude = {
|
||||||
filetypes = {
|
filetypes = {
|
||||||
"help",
|
"help",
|
||||||
"startify",
|
"startify",
|
||||||
"dashboard",
|
"dashboard",
|
||||||
"packer",
|
"packer",
|
||||||
"neogitstatus",
|
"neogitstatus",
|
||||||
"NvimTree",
|
"NvimTree",
|
||||||
"Trouble",
|
"Trouble",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{ -- colorful mode indicators
|
{ -- colorful mode indicators
|
||||||
'mvllow/modes.nvim',
|
"mvllow/modes.nvim",
|
||||||
tag = 'v0.2.1',
|
tag = "v0.2.1",
|
||||||
config = function()
|
config = function()
|
||||||
require('modes').setup()
|
require("modes").setup()
|
||||||
end
|
end,
|
||||||
},
|
},
|
||||||
|
{ -- animate scrolling
|
||||||
|
"echasnovski/mini.animate",
|
||||||
|
version = "*",
|
||||||
|
config = function()
|
||||||
|
require("mini.animate").setup({
|
||||||
|
-- Cursor path
|
||||||
|
cursor = {
|
||||||
|
-- Whether to enable this animation
|
||||||
|
enable = false,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
{ -- dashboard snack
|
||||||
|
"folke/snacks.nvim",
|
||||||
|
priority = 1000,
|
||||||
|
lazy = false,
|
||||||
|
---@type snacks.Config
|
||||||
|
opts = {
|
||||||
|
-- your configuration comes here
|
||||||
|
-- or leave it empty to use the default settings
|
||||||
|
-- refer to the configuration section below
|
||||||
|
dashboard = {
|
||||||
|
preset = {
|
||||||
|
header = [[
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
███╗ ██╗███████╗ ██████╗ ██╗ ██╗██╗███╗ ███╗
|
||||||
|
████╗ ██║██╔════╝██╔═══██╗██║ ██║██║████╗ ████║
|
||||||
|
██╔██╗ ██║█████╗ ██║ ██║██║ ██║██║██╔████╔██║
|
||||||
|
██║╚██╗██║██╔══╝ ██║ ██║╚██╗ ██╔╝██║██║╚██╔╝██║
|
||||||
|
██║ ╚████║███████╗╚██████╔╝ ╚████╔╝ ██║██║ ╚═╝ ██║
|
||||||
|
╚═╝ ╚═══╝╚══════╝ ╚═════╝ ╚═══╝ ╚═╝╚═╝ ╚═╝
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
]],
|
||||||
|
},
|
||||||
|
sections = {
|
||||||
|
{ section = "header" },
|
||||||
|
{
|
||||||
|
pane = 2,
|
||||||
|
section = "terminal",
|
||||||
|
cmd = "pokemon-colorscripts -n snorlax --no-title; sleep .1",
|
||||||
|
height = 20,
|
||||||
|
padding = 0,
|
||||||
|
},
|
||||||
|
{ section = "keys", gap = 1, padding = 1 },
|
||||||
|
{
|
||||||
|
pane = 2,
|
||||||
|
icon = " ",
|
||||||
|
title = "Recent Files",
|
||||||
|
section = "recent_files",
|
||||||
|
indent = 2,
|
||||||
|
padding = 1,
|
||||||
|
},
|
||||||
|
{ pane = 2, icon = " ", title = "Projects", section = "projects", indent = 2, padding = 1 },
|
||||||
|
{
|
||||||
|
pane = 2,
|
||||||
|
icon = " ",
|
||||||
|
title = "Git Status",
|
||||||
|
section = "terminal",
|
||||||
|
enabled = function()
|
||||||
|
return Snacks.git.get_root() ~= nil
|
||||||
|
end,
|
||||||
|
cmd = "git status --short --branch --renames",
|
||||||
|
height = 5,
|
||||||
|
padding = 1,
|
||||||
|
ttl = 5 * 60,
|
||||||
|
indent = 3,
|
||||||
|
},
|
||||||
|
{ section = "startup" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
1
scripts/pokemon-colorscripts
Submodule
1
scripts/pokemon-colorscripts
Submodule
Submodule scripts/pokemon-colorscripts added at 5802ff6752
@@ -66,9 +66,9 @@ set -g @dracula-military-time true
|
|||||||
set -g @dracula-day-month true
|
set -g @dracula-day-month true
|
||||||
|
|
||||||
set -g @plugin 'ofirgall/tmux-window-name'
|
set -g @plugin 'ofirgall/tmux-window-name'
|
||||||
set -g @tmux_window_name_substitute_sets "[('.+bash', 'bash')]"
|
set -g @tmux_window_name_substitute_sets "[('.+bash', 'bash'), ('cbonsai.+', 'cbonsai')]"
|
||||||
set -g @tmux_window_name_shells "['bash', 'fish', 'sh', 'zsh']"
|
set -g @tmux_window_name_shells "['bash', 'fish', 'sh', 'zsh']"
|
||||||
set -g @tmux_window_dir_programs "['nvim', 'vim', 'vi', 'git']"
|
set -g @tmux_window_dir_programs "['nvim', 'vim', 'vi', 'git', 'cbonsai']"
|
||||||
set -g @tmux_window_name_use_tilde "True"
|
set -g @tmux_window_name_use_tilde "True"
|
||||||
set -g @tmux_window_name_max_name_len "100"
|
set -g @tmux_window_name_max_name_len "100"
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
alias tree='tree -CF --du -h'
|
alias tree='tree -CF --du -h'
|
||||||
|
alias cbonsai='cbonsai --live --infinite --time 0.3 --base 2 --wait 2 --leaf "&,#,$,*,@"'
|
||||||
|
|
||||||
# enable color support of ls and also add handy aliases
|
# enable color support of ls and also add handy aliases
|
||||||
alias ls='ls --color=auto'
|
alias ls='ls --color=auto'
|
||||||
|
|||||||
Reference in New Issue
Block a user