Compare commits

...

2 commits

Author SHA1 Message Date
4fe2ba1fa8 move vimrc in insert 2025-01-18 01:28:34 +01:00
a477e89b80 couple small zed things 2025-01-18 01:28:29 +01:00
3 changed files with 60 additions and 29 deletions

View file

@ -13,29 +13,17 @@
"alt-c": "pane::CloseActiveItem",
"ctrl-shift-w": null,
"ctrl-q": null,
"ctrl-h": [
"workspace::ActivatePaneInDirection",
"Left"
],
"ctrl-l": [
"workspace::ActivatePaneInDirection",
"Right"
],
"ctrl-k": [
"workspace::ActivatePaneInDirection",
"Up"
],
"ctrl-j": [
"workspace::ActivatePaneInDirection",
"Down"
],
"ctrl-h": ["workspace::ActivatePaneInDirection", "Left"],
"ctrl-l": ["workspace::ActivatePaneInDirection", "Right"],
"ctrl-k": ["workspace::ActivatePaneInDirection", "Up"],
"ctrl-j": ["workspace::ActivatePaneInDirection", "Down"]
}
},
{
"context": "Workspace",
"bindings": {
"f5": "workspace::ToggleLeftDock",
"alt-v": "terminal_panel::ToggleFocus",
"alt-v": "terminal_panel::ToggleFocus"
}
},
{
@ -54,6 +42,12 @@
"ctrl-w": "terminal::ToggleViMode"
}
},
{
"context": "Editor",
"bindings": {
"alt-enter": "repl::Run"
}
},
{
"context": "VimControl && !menu",
"bindings": {
@ -86,7 +80,7 @@
"line": true
}
}
],
]
}
},
{
@ -98,7 +92,8 @@
"task_name": "lazygit",
"reveal_target": "center"
}
]
],
"space f f": "editor::Format"
}
},
{
@ -107,14 +102,14 @@
"ctrl-l": "vim::Right",
"ctrl-h": "vim::Left",
"ctrl-j": "vim::Down",
"ctrl-k": "vim::Up",
"ctrl-k": "vim::Up"
}
},
{
"context": "Editor && (showing_code_actions || showing_completions)",
"bindings": {
"shift-tab": "editor::ContextMenuPrev",
"tab": "editor::ContextMenuNext",
"tab": "editor::ContextMenuNext"
}
},
{
@ -134,7 +129,7 @@
{
"skip_prompt": false
}
],
]
}
}
},
]

View file

@ -23,8 +23,8 @@
"version": "2"
},
"buffer_font_size": 17,
"format_on_save": "language_server",
"formatter": "language_server",
"format_on_save": "prettier",
"formatter": "prettier",
"buffer_font_family": "FiraCode Nerd Font",
"tab_size": 4,
"vim_mode": true,
@ -61,13 +61,40 @@
"cargo": {
"features": "all",
"allTargets": true
}
}
},
"ruff": {
"initialization_options": {
"settings": {
// Ruff server settings goes here
"lineLength": 80,
"lint": {
"extendSelect": ["I"]
}
}
}
}
},
"soft_wrap": "editor_width",
"show_wrap_guides": true,
"wrap_guides": [
80
],
"wrap_guides": [80],
"languages": {
"Python": {
"language_servers": ["ruff"],
"format_on_save": "language_server",
"formatter": [
{
"language_server": {
"name": "ruff"
}
}
]
// "language_servers": ["pyright", "ruff"]
},
"Rust": {
"format_on_save": "language_server",
"formatter": "language_server"
}
}
}

9
.vimrc
View file

@ -129,3 +129,12 @@ nnoremap zN [s
" same as above but only with bad words (unrecognized)
nnoremap Zn ]S
nnoremap ZN [S
" how to move in insert
vnoremap <leader>y "+y
nnoremap <leader>Y "+Y
nnoremap <leader>y "+y
nnoremap <leader>yy "+yy
" back to normal mode with jk in insert
imap jk <esc>