feat(zed): Add zed config
This commit is contained in:
parent
308a2a24e2
commit
941b30413c
4 changed files with 57 additions and 0 deletions
1
.config/zed/.gitignore
vendored
Normal file
1
.config/zed/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
.tmp**
|
21
.config/zed/keymap.json
Normal file
21
.config/zed/keymap.json
Normal 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
26
.config/zed/settings.json
Normal 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
9
common
|
@ -8,3 +8,12 @@ prompt() {
|
||||||
* ) return 1 ;;
|
* ) return 1 ;;
|
||||||
esac;
|
esac;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
prompt_pos() {
|
||||||
|
printf "$1"
|
||||||
|
read INPUT
|
||||||
|
case $INPUT in
|
||||||
|
[nN] ) return 0 ;;
|
||||||
|
* ) return 1 ;;
|
||||||
|
esac;
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue