feat(zed): Add zed config

This commit is contained in:
Ahmad Ansori Palembani 2025-05-29 11:24:10 +07:00
parent 308a2a24e2
commit 941b30413c
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6
4 changed files with 57 additions and 0 deletions

1
.config/zed/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
.tmp**

21
.config/zed/keymap.json Normal file
View file

@ -0,0 +1,21 @@
// Zed keymap
//
// For information on binding keys, see the Zed
// documentation: https://zed.dev/docs/key-bindings
//
// To see the default key bindings run `zed: open default keymap`
// from the command palette.
[
{
"context": "Workspace",
"bindings": {
// "shift shift": "file_finder::Toggle"
}
},
{
"context": "Editor",
"bindings": {
// "j k": ["workspace::SendKeystrokes", "escape"]
}
}
]

26
.config/zed/settings.json Normal file
View file

@ -0,0 +1,26 @@
// Zed settings
//
// For information on how to configure Zed, see the Zed
// documentation: https://zed.dev/docs/configuring-zed
//
// To see all of Zed's default settings without changing your
// custom settings, run `zed: open default settings` from the
// command palette (cmd-shift-p / ctrl-shift-p)
{
"icon_theme": "Material Icon Theme",
"ui_font_size": 16,
"buffer_font_size": 12,
"theme": {
"mode": "system",
"light": "One Light",
"dark": "Ayu Dark"
},
"vim_mode": true,
"ui_font_family": "Google Sans",
"buffer_font_family": "Iosevka Nerd Font",
"languages": {
"kotlin": {
"language_servers": ["kotlin-lsp"]
}
}
}

9
common
View file

@ -8,3 +8,12 @@ prompt() {
* ) return 1 ;;
esac;
}
prompt_pos() {
printf "$1"
read INPUT
case $INPUT in
[nN] ) return 0 ;;
* ) return 1 ;;
esac;
}