nvim and zed

This commit is contained in:
wooshdude
2024-10-25 20:05:53 -07:00
parent a7655b2c11
commit 0bc7fab50d
7 changed files with 179 additions and 24 deletions
+39
View File
@@ -0,0 +1,39 @@
// 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": {
// "space space": "file_finder::Toggle"
}
},
{
"context": "Editor && vim_mode == normal",
"bindings": {
// "j j": ["workspace::SendKeystrokes", "escape"]
"tab": "pane::ActivateNextItem",
"shift-tab": "pane::ActivatePrevItem",
"space space": "file_finder::Toggle"
}
},
{
"context": "Editor && vim_mode == insert",
"bindings": {
"ctrl-j": "editor::ContextMenuNext",
"ctrl-k": "editor::ContextMenuPrev",
"tab": "editor::ConfirmCompletion"
}
},
{
"context": "Editor",
"bindings": {
"ctrl-j": "menu::SelectNext",
"ctrl-k": "menu::SelectPrev"
}
}
]
+37
View File
@@ -0,0 +1,37 @@
// 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)
{
"vim_mode": true,
"vim": {
"toggle_relative_line_numbers": true
},
"features": {
"copilot": false,
"inline_completion_provider": "none"
},
"show_completions_on_input": true,
"assistant": {
"version": "2",
"enabled": false
},
"inlay_hints": {
"enabled": true,
"show_type_hints": true,
"show_parameter_hints": true,
"show_other_hints": true
},
"show_inline_completions": true,
"ui_font_size": 16,
"buffer_font_size": 16,
"theme": {
"mode": "dark",
"light": "Catppuccin Latte",
"dark": "Catppuccin Mocha (Blur)"
}
}