feat: new font, packages and code config

This commit is contained in:
Tine 2024-04-18 18:50:00 +02:00
parent d22cc72ee4
commit b781b13b0e
No known key found for this signature in database
6 changed files with 76 additions and 8 deletions

10
code/extensions.txt Normal file
View file

@ -0,0 +1,10 @@
eamodio.gitlens
github.copilot
github.copilot-chat
github.vscode-pull-request-github
golang.go
ms-vscode-remote.remote-containers
ms-vscode-remote.remote-ssh
ms-vscode-remote.remote-ssh-edit
ms-vscode.remote-explorer
mvllow.rose-pine

10
code/settings.json Normal file
View file

@ -0,0 +1,10 @@
{
"workbench.colorTheme": "Rosé Pine Dawn",
"window.menuBarVisibility": "toggle",
"editor.fontLigatures": true,
"workbench.preferredDarkColorTheme": "Rosé Pine Moon",
"workbench.preferredLightColorTheme": "Rosé Pine Dawn",
"window.titleBarStyle": "custom",
"window.customTitleBarVisibility": "auto",
"editor.fontFamily": "'mnts.dev', 'Droid Sans Mono', 'monospace', monospace"
}

View file

@ -118,3 +118,8 @@ sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.
nvim --headless +PlugInstall +qa || true
nvim --headless +PlugUpdate +qa || true
nvim --headless +PlugUpgrade +qa || true
if command -v code; then
echo_header "==[host] Installing vscode extensions"
./code/vscode-extensions.sh --install
fi

View file

@ -1,7 +1,7 @@
font_family Liga Operator Mono SSm Book Nerd Font
bold_font Liga Operator Mono SSm Medium Nerd Font
italic_font Liga Operator Mono SSm BookItalic Nerd Font
bold_italic_font Liga Operator Mono SSm MediumItalic Nerd Font
font_family mnts.dev Regular
bold_font mnts.dev Bold
italic_font mnts.dev Italic
bold_italic_font mnts.dev Bold Italic
disable_ligatures never
hide_window_decorations yes
@ -12,8 +12,6 @@ include themes/rose-pine-dawn.conf
include theme.conf
# Tab Bar
tab_bar_style separator
tab_separator ""
tab_title_template " {fmt.fg.red}{bell_symbol}{activity_symbol}{fmt.fg.tab}{'/'.join(tab.active_oldest_wd.split('/')[-2:])} "
# Layouts

View file

@ -22,13 +22,12 @@
bat
tmux
jq
yq
fd
fzf
gnumake
age
sops
jq
yq
http-prompt
watchexec
devbox
@ -37,6 +36,9 @@
sqlfluff
tree
redis
dive
ctop
bottom
# Nodejs
nodejs_20
@ -91,6 +93,10 @@
recursive = true;
source = ../nvim;
};
"${config.xdg.configHome}/Code/User" = {
recursive = true;
source = ../code;
};
};
programs.gh = {

39
vscode.sh Executable file
View file

@ -0,0 +1,39 @@
#!/bin/bash
set -euo pipefail
ACTION=
while [[ $# -gt 0 ]]; do
case $1 in
--install)
ACTION=install
break
shift
;;
--store)
ACTION=store
break
shift
;;
-h | --help)
echo "Usage: vscode.sh [--install|--store]"
exit 0
;;
-* | --*)
echo "Unknown option $1"
exit 1
;;
esac
done
if [ -z "$ACTION" ]; then
echo "No action specified"
echo "Usage: vscode.sh [--install|--store]"
exit 1
fi
if [ "$ACTION" = "install" ]; then
for extension in $(cat code/extensions.txt); do
code --install-extension $extension
done
elif [ "$ACTION" = "store" ]; then
code --list-extensions >code/extensions.txt
fi