chore(zed): Adjust keymaps to match nvim
Probably gonna put this on halt for now as I notice zed doesn't have TODO/FIXME highlighting yet.
This commit is contained in:
parent
941b30413c
commit
0a95ccd9a5
3 changed files with 30 additions and 7 deletions
|
@ -7,9 +7,9 @@ map("n", "<C-u>", "U")
|
||||||
map("n", "U", "<C-r>")
|
map("n", "U", "<C-r>")
|
||||||
|
|
||||||
-- Yank and Put
|
-- Yank and Put
|
||||||
map("n", "<C-y>", '"+y')
|
map("nv", "<C-y>", '"+y')
|
||||||
map("n", "<C-p>", '"+p')
|
map("n", "<C-p>", '"+p')
|
||||||
map("n", "<C-Y>", '"+y')
|
map("nv", "<C-Y>", '"+y')
|
||||||
map("n", "<C-P>", '"+p')
|
map("n", "<C-P>", '"+p')
|
||||||
|
|
||||||
-- Comment a line like how it is on VSC (using vim-commentary)
|
-- Comment a line like how it is on VSC (using vim-commentary)
|
||||||
|
|
|
@ -7,15 +7,27 @@
|
||||||
// from the command palette.
|
// from the command palette.
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"context": "Workspace",
|
"context": "!ProjectPanel",
|
||||||
"bindings": {
|
"bindings": {
|
||||||
// "shift shift": "file_finder::Toggle"
|
"ctrl-n": "project_panel::ToggleFocus"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"context": "Editor",
|
"context": "ProjectPanel",
|
||||||
"bindings": {
|
"bindings": {
|
||||||
// "j k": ["workspace::SendKeystrokes", "escape"]
|
"ctrl-n": "workspace::ToggleLeftDock"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"context": "vim_mode == normal",
|
||||||
|
"bindings": {
|
||||||
|
// NOTE: No need to rebind yank (y) and paste (p) since they are basically act the same as "+y and "+p in vim
|
||||||
|
"U": "vim::Redo"
|
||||||
|
/*
|
||||||
|
// <C-u> is signed to replace "U" which resigned as vim::Redo, but "U" doesn't seems to exists in zed?
|
||||||
|
// According to the documentation, "U" is "return the last line which was modified to its original state"
|
||||||
|
"ctrl-u": "",
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
@ -20,7 +20,18 @@
|
||||||
"buffer_font_family": "Iosevka Nerd Font",
|
"buffer_font_family": "Iosevka Nerd Font",
|
||||||
"languages": {
|
"languages": {
|
||||||
"kotlin": {
|
"kotlin": {
|
||||||
"language_servers": ["kotlin-lsp"]
|
"language_servers": ["kotlin-language-server"]
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
// AI stuff
|
||||||
|
"features": {
|
||||||
|
"edit_prediction_provider": "supermaven"
|
||||||
|
},
|
||||||
|
"agent": {
|
||||||
|
/*
|
||||||
|
"enabled": false,
|
||||||
|
"button": false,
|
||||||
|
"version": "1"
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue