addet neovide config

This commit is contained in:
pika 2024-06-20 00:23:13 +02:00
parent 253fd4c711
commit a7224fbde1
2 changed files with 41 additions and 18 deletions

View file

@ -1,4 +1,4 @@
#!/bin/fish
# ─< VSCodium >─────────────────────────────────────────────────────────────────────────────
if command -v codium >/dev/null 2>&1
alias code="codium"
@ -6,6 +6,12 @@ if command -v codium >/dev/null 2>&1
set -p EDITOR codium
end
# ─< neovide, the best frontend for any neovim-config >───────────────────────────────────
if test -d $HOME/.local/share/neovide/
set -p neovide (bash -c 'find $HOME/ -name *neovide*.appimage')
alias nvim="$neovide"
end
# ─< colorized ls >─────────────────────────────────────────────────────────────────────────
# ─< lsd >──────────────────────────────────────────────────────────────────────────────────
if command -v lsd >/dev/null 2>&1

View file

@ -1,5 +1,18 @@
if status is-interactive
# ─< Commands to run in interactive sessions can go here >──────────────
function _source
if test -d $HOME/.config/fish/init/
source $HOME/.config/fish/init/setup.fish
# ────────────────────────────────────< setup some stuff >────────────────────────────────────
upin
# dep_fisher
else
notify-send "no fish config.."
end
if test -e $HOME/.config/fish/aliases.fish
source $HOME/.config/fish/aliases.fish
end
end
end
# ╭───────────────────────────────────────────────────╮
@ -16,7 +29,6 @@ function _source
# ────────────────────────────────────< setup some stuff >────────────────────────────────────
upin
# dep_fisher
# check_fishr
else
notify-send "no fish config.."
end
@ -24,10 +36,12 @@ function _source
source $HOME/.config/fish/aliases.fish
end
end
# ─────────────────────────────────< Environment-Variables >───────────────────────────────
set -p EDITOR (which nvim)
# ────────────────────────────────────────< functions >─────────────────────────────────────
# ─< z stands for Zoxide >──────────────────────────────────────────────────────────────────
function _zox
if command -v zoxide >/dev/null 2>&1
@ -35,29 +49,32 @@ function _zox
end
end
# ─< oh-my-posh >───────────────────────────────────────────────────────────────────────────
function _omp
if command -v oh-my-posh >/dev/null 2>&1
# ─< tokyo-storm config >───────────────────────────────────────────────────────────────────
oh-my-posh init fish --config ~/.config/fish/themes/tokyo_storm.toml | source
# ─< zen config >───────────────────────────────────────────────────────────────────────────
# oh-my-posh init fish --config ~/.config/fish/themes/zen.toml | source
else
curl -s https://ohmyposh.dev/install.sh | bash -s -- -d ~/bin
# ─< set colorscheme for bobthefish >───────────────────────────────────────────────────────
function _bobfish
if test -d $HOME/.config/fish/functions/bobthefish/
source $HOME/.config/fish/functions/bobthefish/*.fish
set -g theme_nerd_fonts yes
set -g defaults_user (echo $USER)
# available options: dark, light, solarized(-dark/-light), base16(-dark/-light), zenburn, gruvbox(-light), dracula, nord, catppuccin-(latte/frappe/macchiato/mocha)
set -g theme_color_scheme catppuccin-mocha
end
end
# ─< set colorscheme for bobthefish >───────────────────────────────────────────────────────
if test -d $HOME/.config/fish/functions/
set -g theme_nerd_fonts yes
set -g defaults_user (echo $USER)
# available options: dark, light, solarized(-dark/-light), base16(-dark/-light), zenburn, gruvbox(-light), dracula, nord, catppuccin-(latte/frappe/macchiato/mocha)
set -g theme_color_scheme catppuccin-mocha
# ─< oh-my-posh >───────────────────────────────────────────────────────────────────────────
if command -v oh-my-posh >/dev/null 2>&1
# ─< tokyo-storm config >───────────────────────────────────────────────────────────────────
oh-my-posh init fish --config ~/.config/fish/themes/tokyo_storm.toml | source
# ─< zen config >───────────────────────────────────────────────────────────────────────────
# oh-my-posh init fish --config ~/.config/fish/themes/zen.toml | source
else
_bobfish
curl -s https://ohmyposh.dev/install.sh | bash -s -- -d ~/bin
end
function main
_source
_zox
_omp
# _omp
end
main