diff --git a/.config/zed/.gitignore b/.config/zed/.gitignore new file mode 100644 index 0000000..ee0e09e --- /dev/null +++ b/.config/zed/.gitignore @@ -0,0 +1 @@ +.tmp** diff --git a/.config/zed/keymap.json b/.config/zed/keymap.json new file mode 100644 index 0000000..78f5c8d --- /dev/null +++ b/.config/zed/keymap.json @@ -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"] + } + } +] diff --git a/.config/zed/settings.json b/.config/zed/settings.json new file mode 100644 index 0000000..db8d973 --- /dev/null +++ b/.config/zed/settings.json @@ -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"] + } + } +} diff --git a/common b/common index 315d0db..032954d 100644 --- a/common +++ b/common @@ -8,3 +8,12 @@ prompt() { * ) return 1 ;; esac; } + +prompt_pos() { + printf "$1" + read INPUT + case $INPUT in + [nN] ) return 0 ;; + * ) return 1 ;; + esac; +}