Skip to content

Commit

Permalink
chore: vscode config
Browse files Browse the repository at this point in the history
  • Loading branch information
vgnshiyer committed Aug 1, 2024
1 parent 58b2fc4 commit 55effcd
Show file tree
Hide file tree
Showing 6 changed files with 81 additions and 48 deletions.
20 changes: 20 additions & 0 deletions .config/nvim/after/plugin/kanagawa.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
require'kanagawa'.setup({
undercurl = true,
commentStyle = { italic = true },
functionStyle = {},
keywordStyle = { italic = true },
statementStyle = { bold = true },
transparent = true,
theme = "dragon",
colors = {
theme = {
all = {
ui = {
bg_gutter = "none",
},
},
},
},
})

vim.cmd('colorscheme kanagawa')
25 changes: 1 addition & 24 deletions .config/nvim/lua/vgnshiyer/packer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,30 +13,7 @@ return require('packer').startup(function(use)
}

-- colorscheme
use {
"rebelot/kanagawa.nvim",
config = function()
require('kanagawa').setup({
undercurl = true,
commentStyle = { italic = true },
functionStyle = {},
keywordStyle = { italic = true },
statementStyle = { bold = true },
transparent = true,
theme = "dragon",
colors = {
theme = {
all = {
ui = {
bg_gutter = "none",
},
},
},
},
})
vim.cmd('colorscheme kanagawa')
end
}
use "rebelot/kanagawa.nvim"

-- syntax highlighting
use('nvim-treesitter/nvim-treesitter', { run = ':TSUpdate' })
Expand Down
5 changes: 0 additions & 5 deletions .config/nvim/plugin/packer_compiled.lua
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ _G.packer_plugins = {
url = "https://github.com/3rd/image.nvim"
},
["kanagawa.nvim"] = {
config = { "\27LJ\2\n§\3\0\0\a\0\22\0\0276\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\3\0005\3\4\0=\3\5\0024\3\0\0=\3\6\0025\3\a\0=\3\b\0025\3\t\0=\3\n\0025\3\16\0005\4\14\0005\5\f\0005\6\v\0=\6\r\5=\5\15\4=\4\17\3=\3\18\2B\0\2\0016\0\19\0009\0\20\0'\2\21\0B\0\2\1K\0\1\0\25colorscheme kanagawa\bcmd\bvim\vcolors\ntheme\1\0\1\ntheme\0\ball\1\0\1\ball\0\aui\1\0\1\aui\0\1\0\1\14bg_gutter\tnone\19statementStyle\1\0\1\tbold\2\17keywordStyle\1\0\1\vitalic\2\18functionStyle\17commentStyle\1\0\1\vitalic\2\1\0\b\19statementStyle\0\16transparent\2\14undercurl\2\17commentStyle\0\18functionStyle\0\vcolors\0\17keywordStyle\0\ntheme\vdragon\nsetup\rkanagawa\frequire\0" },
loaded = true,
path = "/Users/viiyer/.local/share/nvim/site/pack/packer/start/kanagawa.nvim",
url = "https://github.com/rebelot/kanagawa.nvim"
Expand Down Expand Up @@ -190,10 +189,6 @@ _G.packer_plugins = {
}

time([[Defining packer_plugins]], false)
-- Config for: kanagawa.nvim
time([[Config for kanagawa.nvim]], true)
try_loadstring("\27LJ\2\n§\3\0\0\a\0\22\0\0276\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\3\0005\3\4\0=\3\5\0024\3\0\0=\3\6\0025\3\a\0=\3\b\0025\3\t\0=\3\n\0025\3\16\0005\4\14\0005\5\f\0005\6\v\0=\6\r\5=\5\15\4=\4\17\3=\3\18\2B\0\2\0016\0\19\0009\0\20\0'\2\21\0B\0\2\1K\0\1\0\25colorscheme kanagawa\bcmd\bvim\vcolors\ntheme\1\0\1\ntheme\0\ball\1\0\1\ball\0\aui\1\0\1\aui\0\1\0\1\14bg_gutter\tnone\19statementStyle\1\0\1\tbold\2\17keywordStyle\1\0\1\vitalic\2\18functionStyle\17commentStyle\1\0\1\vitalic\2\1\0\b\19statementStyle\0\16transparent\2\14undercurl\2\17commentStyle\0\18functionStyle\0\vcolors\0\17keywordStyle\0\ntheme\vdragon\nsetup\rkanagawa\frequire\0", "config", "kanagawa.nvim")
time([[Config for kanagawa.nvim]], false)
-- Config for: Comment.nvim
time([[Config for Comment.nvim]], true)
try_loadstring("\27LJ\2\nÆ\1\0\0\6\0\r\0\0226\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\0016\0\3\0009\0\4\0009\0\5\0'\2\6\0'\3\a\0'\4\b\0005\5\t\0B\0\5\0016\0\3\0009\0\4\0009\0\5\0'\2\n\0'\3\a\0'\4\v\0005\5\f\0B\0\5\1K\0\1\0\1\0\2\vsilent\2\fnoremap\1\agc\6v\1\0\2\vsilent\2\fnoremap\1\bgcc\n<F19>\6n\20nvim_set_keymap\bapi\bvim\nsetup\fComment\frequire\0", "config", "Comment.nvim")
Expand Down
24 changes: 23 additions & 1 deletion Brewfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
tap "epk/epk"
tap "hashicorp/tap"
tap "homebrew/bundle"
tap "homebrew/services"
tap "koekeishiya/formulae"
tap "styrainc/packages"
# Configurable talking characters in ASCII art
brew "cowsay"
# Modern, maintained replacement for ls
Expand All @@ -16,10 +18,16 @@ brew "fortune"
brew "fzf"
# Distributed revision control system
brew "git"
# Extendable open source continuous integration server
brew "jenkins-lts", restart_service: true
# Convert JPG images to ASCII
brew "jp2a"
# Lightweight and flexible command-line JSON processor
brew "jq"
# Terminal file manager
brew "lf"
# High performance, distributed memory object caching system
brew "memcached"
# Open source relational database management system
brew "mysql-client"
# Fast, highly customisable system info script
Expand All @@ -46,27 +54,39 @@ brew "vim"
brew "wget"
# Shell extension to navigate your filesystem faster
brew "zoxide"
# Vault
brew "hashicorp/tap/vault"
# Simple hotkey-daemon for macOS.
brew "koekeishiya/formulae/skhd"
# A tiling window manager for macOS based on binary space partitioning.
brew "koekeishiya/formulae/yabai"
# Regal is a linter for Rego, with the goal of making your Rego magnificent!
brew "styrainc/packages/regal"
# GPU-accelerated terminal emulator
cask "alacritty"
cask "font-fira-code"
cask "font-hack-nerd-font"
cask "font-sf-mono-nerd-font"
cask "font-zed-mono"
# Open-source code editor
cask "visual-studio-code"
vscode "1yib.rust-bundle"
vscode "4ops.terraform"
vscode "aaronyoung.dark-synthwave-vscode"
vscode "ajshortt.tokyo-hack"
vscode "alefragnani.project-manager"
vscode "be5invis.vscode-custom-css"
vscode "bradlc.vscode-tailwindcss"
vscode "burkeholland.simple-react-snippets"
vscode "daltonmenezes.aura-theme"
vscode "dbaeumer.vscode-eslint"
vscode "degreat.theme-to-zed"
vscode "donjayamanne.python-environment-manager"
vscode "dooez.alt-catppuccin-vsc"
vscode "dsznajder.es7-react-js-snippets"
vscode "dustypomerleau.rust-syntax"
vscode "eliverlara.andromeda"
vscode "enhancedjax.vscode-ayu-zed"
vscode "esbenp.prettier-vscode"
vscode "formulahendry.code-runner"
vscode "ghostwithahoodie.zednos-theme"
Expand All @@ -78,6 +98,7 @@ vscode "golang.go"
vscode "humao.rest-client"
vscode "illixion.vscode-vibrancy-continued"
vscode "james-yu.latex-workshop"
vscode "kencocaceo.customvscodeuicss"
vscode "lakshits11.monokai-pirokai"
vscode "mhutchie.git-graph"
vscode "ms-azuretools.vscode-docker"
Expand All @@ -89,14 +110,15 @@ vscode "ms-vscode-remote.remote-containers"
vscode "ms-vscode.cpptools"
vscode "ms-vscode.vscode-speech"
vscode "ms-vsliveshare.vsliveshare"
vscode "plex.vscode-regolint"
vscode "redhat.java"
vscode "redhat.vscode-xml"
vscode "ritwickdey.liveserver"
vscode "rust-lang.rust-analyzer"
vscode "serayuzgur.crates"
vscode "shd101wyy.markdown-preview-enhanced"
vscode "tamasfe.even-better-toml"
vscode "teabyii.ayu"
vscode "tsandall.opa"
vscode "visualstudioexptteam.intellicode-api-usage-examples"
vscode "visualstudioexptteam.vscodeintellicode"
vscode "vmware.vscode-boot-dev-pack"
Expand Down
28 changes: 10 additions & 18 deletions vscode_settings/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,15 @@
"editor.cursorStyle": "block",
"editor.cursorBlinking": "expand",
"editor.cursorSmoothCaretAnimation": "on",
"editor.fontFamily": "SF Mono Nerd Font, monospace",
"editor.fontFamily": "Zed Mono Extended",
"editor.fontSize": 13,
"editor.fontLigatures": true,
"editor.minimap.enabled": false,
"apc.font.family": "Zed Mono Extended",
"apc.monospace.font.family": "Zed Mono Extended",
"apc.menubar.compact": true,
"vscode_custom_css.imports": ["file:///Users/viiyer/.dotfiles/vscode_settings/custom_workbench.css"],
"vscode_custom_css.statusbar": true,
"breadcrumbs.enabled": false,
"liveshare.accessibility.soundsEnabled": false,
"github.copilot.enable": {
Expand All @@ -18,6 +25,7 @@
},
"workbench.iconTheme": "vscode-icons",
"terminal.integrated.cursorBlinking": true,
"terminal.integrated.cursorStyle": "block",
"explorer.confirmDelete": false,
"zenMode.hideLineNumbers": false,
"editor.accessibilitySupport": "off",
Expand Down Expand Up @@ -70,7 +78,6 @@
"accessibility.signals.progress": {
"sound": "off"
},
"workbench.colorTheme": "Solarized Light",
"vscode_vibrancy.theme": "Dark (Only Subbar)",
"vscode_vibrancy.opacity": 0,
"vim.visualModeKeyBindings": [
Expand All @@ -89,25 +96,9 @@
"commands": [
"editor.action.outdentLines"
]
},
{
"before": ["0"],
"after": ["$"]
},
{
"before": ["9"],
"after": ["^"]
}
],
"vim.normalModeKeyBindings": [
{
"before": ["0"],
"after": ["$"]
},
{
"before": ["9"],
"after": ["^"]
},
{
"before": ["<C-d>"],
"after": ["<C-d>", "z", "z"]
Expand All @@ -123,5 +114,6 @@
],
"opa.bundleMode": true,
"editor.lineNumbers": "relative",
"workbench.colorTheme": "Ayu Mirage Zed",
"workbench.statusBar.visible": false
}
27 changes: 27 additions & 0 deletions vscode_settings/vs_code_workbench_font.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/sh

codes="code"

style_file="/Applications/Visual\ Studio\ Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.css"

if [ -f "$style_file" ]; then
favorite="Zed Mono Extended"

# Change font to monospace.
sed -i "s/\.linux{[^}]\+/.linux{font-family:\"$favorite\",\"Noto Sans Mono\"/" \
"$style_file"
sed -i "s/\.linux:lang(zh-Hans){[^}]\+/.linux:lang(zh-Hans){font-family:\"$favorite\",\"Noto Sans Mono CJK SC\"/" \
"$style_file"
sed -i "s/\.linux:lang(zh-Hant){[^}]\+/.linux:lang(zh-Hant){font-family:\"$favorite\",\"Noto Sans Mono CJK TC\"/" \
"$style_file"
sed -i "s/\.linux:lang(ja){[^}]\+/.linux:lang(ja){font-family:\"$favorite\",\"Noto Sans Mono CJK JP\"/" \
"$style_file"
sed -i "s/\.linux:lang(ko){[^}]\+/.linux:lang(ko){font-family:\"$favorite\",\"Noto Sans Mono CJK KR\"/" \
"$style_file"

# Change font-size to what you want.
sed -i 's/\.monaco-workbench \.part>\.content{[^}]\+/.monaco-workbench .part>.content{font-size:18px/' \
"$style_file"
fi

exit 0

0 comments on commit 55effcd

Please sign in to comment.