summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kanata/kanata.kbd13
-rw-r--r--zed/keymap.json60
-rw-r--r--zed/settings.json34
3 files changed, 106 insertions, 1 deletions
diff --git a/kanata/kanata.kbd b/kanata/kanata.kbd
index 33200b3..23e7b3d 100644
--- a/kanata/kanata.kbd
+++ b/kanata/kanata.kbd
@@ -53,4 +53,15 @@
crg C-rght
)
-;; (include chords.kbd)
+(defvar
+ left-hand-keys (
+ q w e r t
+ a s d f g
+ z x c v b
+ )
+ right-hand-keys (
+ y u i o p
+ h j k l ;
+ n m , . /
+ )
+)
diff --git a/zed/keymap.json b/zed/keymap.json
new file mode 100644
index 0000000..b06f33b
--- /dev/null
+++ b/zed/keymap.json
@@ -0,0 +1,60 @@
+// 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.
+[
+ {
+ // idk why this needs to be editor
+ "context": "vim_mode == normal && Editor",
+ "bindings": {
+ "space space": "file_finder::Toggle"
+ }
+ },
+ {
+ "context": "Editor",
+ "bindings": {
+ // "j k": ["workspace::SendKeystrokes", "escape"]
+ }
+ },
+ {
+ "context": "vim_mode == normal && !menu",
+ "bindings": {
+ "shift-y": ["workspace::SendKeystrokes", "y $"], // Use neovim's yank behavior: yank to end of line.
+ "space l f": "editor::Format",
+ "space f x": "workspace::CloseAllDocks"
+ }
+ },
+ {
+ "context": "vim_mode == visual",
+ "bindings": {
+ "shift-s": ["vim::PushAddSurrounds", {}]
+ }
+ },
+ {
+ "context": "vim_mode == insert",
+ "bindings": {
+ "ctrl-y": "editor::ConfirmCompletion"
+ }
+ },
+ {
+ "context": "Dock",
+ "bindings": {
+ "ctrl-w h": "workspace::ActivatePaneLeft",
+ "ctrl-w l": "workspace::ActivatePaneRight",
+ "ctrl-w k": "workspace::ActivatePaneUp",
+ "ctrl-w j": "workspace::ActivatePaneDown"
+ // ... or other keybindings
+ }
+ },
+
+ {
+ // like the command picker and stuff
+ "context": "Editor && mode == single_line",
+ "bindings": {
+ "ctrl-w": "editor::DeleteToPreviousWordStart"
+ }
+ }
+]
diff --git a/zed/settings.json b/zed/settings.json
new file mode 100644
index 0000000..a8e97c3
--- /dev/null
+++ b/zed/settings.json
@@ -0,0 +1,34 @@
+// 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)
+{
+ "assistant": {
+ "default_model": {
+ "provider": "lmstudio",
+ "model": "qwen2.5-coder-3b-instruct"
+ },
+ "version": "2"
+ },
+ "base_keymap": "JetBrains",
+ "telemetry": {
+ "metrics": false
+ },
+ "vim_mode": true,
+ "ui_font_size": 15,
+ "buffer_font_size": 15,
+ "buffer_font_features": {
+ // Disable ligatures:
+ "calt": false
+ },
+ "theme": {
+ "mode": "system",
+ "light": "Ayu Dark",
+ "dark": "One Dark"
+ },
+ "relative_line_numbers": true
+}