update theme, clean up nvim

This commit is contained in:
Amarpreet Minhas 2024-11-27 19:57:28 -05:00
parent 25f546c8c6
commit 7ffc744aef
4 changed files with 95 additions and 108 deletions

View file

@ -0,0 +1,42 @@
background #212629
foreground #c0caf5
selection_background #283457
selection_foreground #c0caf5
url_color #73daca
cursor #c0caf5
cursor_text_color #1a1b26
# Tabs
active_tab_background #7aa2f7
active_tab_foreground #16161e
inactive_tab_background #292e42
inactive_tab_foreground #545c7e
#tab_bar_background #15161e
# Windows
active_border_color #7aa2f7
inactive_border_color #292e42
# normal
color0 #111313
color1 #9e6b71
color2 #719e6b
color3 #9e986c
color4 #6c8b9e
color5 #986b9e
color6 #6b9e98
color7 #b8baba
# bright
color8 #424446
color9 #b69094
color10 #719e6b
color11 #b5b18f
color12 #90a7b6
color13 #b290b6
color14 #90b6b3
color15 #cdcfce
# extended colors
color16 #ff9e64
color17 #db4b4b

View file

@ -1,25 +1,3 @@
font_size 14.0 font_size 14.0
background #000000
foreground #D3D3D3
selection_background #2f3333
selection_foreground none
cursor #c1c8c9
color0 #111313
color8 #424446
color1 #9e6b71
color9 #b69094
color2 #719e6b
color10 #94b690
color3 #9e986c
color11 #b5b18f
color4 #6c8b9e
color12 #90a7b6
color5 #986b9e
color13 #b290b6
color6 #6b9e98
color14 #90b6b3
color7 #b8baba
color15 #cdcfce
font_family DejaVuSansM Nerd Font Mono
bold_font DejaVuSansM Nerd Font Mono Bold
scrollback_lines 20000 scrollback_lines 20000
include current-theme.conf

View file

@ -1,63 +1,29 @@
return { return {
"nvimdev/dashboard-nvim", "folke/snacks.nvim",
event = "VimEnter", opts = {
opts = function() dashboard = {
local logo = [[ preset = {
__ _ __ _ header = [[ __ _ __ _
/ / | | / / | | / / | | / / | |
/ /__| | ___ __ __ / /__ __ _ _ | | / /__| | ___ __ __ / /__ __ _ _ | |
/ // _` | / _ \\ \ / // / \ \ / /| | | || | / // _` | / _ \\ \ / // / \ \ / /| | | || |
/ /| (_| || __/ \ V // / \ V / | |_| || | / /| (_| || __/ \ V // / \ V / | |_| || |
/_/ \__,_| \___| \_//_/ \_/ \__,_||_| /_/ \__,_| \___| \_//_/ \_/ \__,_||_|
]] ]],
logo = string.rep("\n", 8) .. logo .. "\n\n"
local opts = {
theme = "doom",
hide = {
-- this is taken care of by lualine
-- enabling this messes up the actual laststatus setting after loading a file
statusline = false,
},
config = {
header = vim.split(logo, "\n"),
-- stylua: ignore -- stylua: ignore
center = { ---@type snacks.dashboard.Item[]
{ action = 'lua LazyVim.pick()()', desc = " Find File", icon = "", key = "f" }, keys = {
{ action = "ene | startinsert", desc = " New File", icon = "", key = "n" }, { icon = "", key = "f", desc = "Find File", action = ":lua Snacks.dashboard.pick('files')" },
{ action = "Telescope oldfiles", desc = " Recent Files", icon = "", key = "r" }, { icon = "", key = "n", desc = "New File", action = ":ene | startinsert" },
{ action = "Telescope live_grep", desc = " Find Text", icon = "", key = "g" }, { icon = "", key = "g", desc = "Find Text", action = ":lua Snacks.dashboard.pick('live_grep')" },
{ action = [[lua LazyVim.telescope.config_files()()]], desc = " Config", icon = "", key = "c" }, { icon = "", key = "r", desc = "Recent Files", action = ":lua Snacks.dashboard.pick('oldfiles')" },
{ action = 'lua require("persistence").load()', desc = " Restore Session", icon = "", key = "s" }, { icon = "", key = "c", desc = "Config", action = ":lua Snacks.dashboard.pick('files', {cwd = vim.fn.stdpath('config')})" },
{ action = "LazyExtras", desc = " Lazy Extras", icon = "", key = "x" }, { icon = "", key = "s", desc = "Restore Session", section = "session" },
{ action = "Lazy", desc = " Lazy", icon = "󰒲 ", key = "l" }, { icon = "", key = "x", desc = "Lazy Extras", action = ":LazyExtras" },
{ action = "qa", desc = " Quit", icon = "", key = "q" }, { icon = "󰒲 ", key = "l", desc = "Lazy", action = ":Lazy" },
{ icon = "", key = "q", desc = "Quit", action = ":qa" },
}, },
footer = function()
local stats = require("lazy").stats()
local ms = (math.floor(stats.startuptime * 100 + 0.5) / 100)
return { "⚡ Neovim loaded " .. stats.loaded .. "/" .. stats.count .. " plugins in " .. ms .. "ms" }
end,
}, },
} },
},
for _, button in ipairs(opts.config.center) do
button.desc = button.desc .. string.rep(" ", 43 - #button.desc)
button.key_format = " %s"
end
-- close Lazy and re-open when the dashboard is ready
if vim.o.filetype == "lazy" then
vim.cmd.close()
vim.api.nvim_create_autocmd("User", {
pattern = "DashboardLoaded",
callback = function()
require("lazy").show()
end,
})
end
return opts
end,
} }

View file

@ -2,45 +2,46 @@
# install packages # install packages
sudo apt install \ sudo apt install \
apt-transport-https \ apt-transport-https \
curl \ curl \
fd-find \ fd-find \
firefox \ firefox \
fontconfig \ fontconfig \
golang-1.22 \ golang-1.22 \
gpg \ gpg \
htop \ htop \
imv \ imv \
inxi \ inxi \
jq \ jq \
kitty \ kitty \
mpv \ luarocks \
ncdu \ mpv \
neovim \ ncdu \
pipewire-alsa \ neovim \
pipewire-audio \ pipewire-alsa \
pipewire-pulse sudo \ pipewire-audio \
python3-neovim \ pipewire-pulse sudo \
python3-pynvim \ python3-neovim \
ripgrep \ python3-pynvim \
sway \ ripgrep \
swaylock \ sway \
tmux \ swaylock \
unzip \ tmux \
waybar \ unzip \
wget \ waybar \
wireplumber \ wget \
wl-clipboard \ wireplumber \
yq wl-clipboard \
yq
# set up nerd fonts # set up nerd fonts
FONT_DIR=${HOME}/.local/share/fonts/ FONT_DIR=${HOME}/.local/share/fonts/
mkdir -p ${FONT_DIR} mkdir -p ${FONT_DIR}
wget -qO- https://github.com/ryanoasis/nerd-fonts/releases/download/v3.1.1/DejaVuSansMono.tar.xz | tar -Jxv -C ${FONT_DIR} wget -qO- https://github.com/ryanoasis/nerd-fonts/releases/download/v3.3.0/DejaVuSansMono.tar.xz | tar -Jxv -C ${FONT_DIR}
fc-cache -fv fc-cache -fv
# install lazygit # install lazygit
/usr/lib/go-1.22/bin/go install github.com/jesseduffield/lazygit@latest /usr/lib/go-1.23/bin/go install github.com/jesseduffield/lazygit@latest
# setup moolticute # setup moolticute
echo 'deb http://download.opensuse.org/repositories/home:/fawz:/mooltipass/Debian_Testing/ /' | sudo tee /etc/apt/sources.list.d/home:fawz:mooltipass.list echo 'deb http://download.opensuse.org/repositories/home:/fawz:/mooltipass/Debian_Testing/ /' | sudo tee /etc/apt/sources.list.d/home:fawz:mooltipass.list