update zed tasks and keymap

This commit is contained in:
2026-01-12 14:02:31 +08:00
parent 2f37ac4f95
commit 28e1135dd7
3 changed files with 58 additions and 57 deletions

View File

@@ -10,21 +10,18 @@
"context": "Workspace",
"bindings": {
// "shift shift": "file_finder::Toggle"
}
},
},
{
"context": "Editor",
"bindings": {
// "j k": ["workspace::SendKeystrokes", "escape"]
}
},
},
{
"context": "VimControl && !menu",
"context": "Editor && extension==tex", // This restricts the keybindings to tex files however does not work when in terminal
"bindings": {
"j": ["vim::Down", { "display_lines": true }],
"k": ["vim::Up", { "display_lines": true }],
"g j": "vim::Down",
"g k": "vim::Up"
}
}
"ctrl-alt-f": ["task::Spawn", { "task_name": "forward_search" }]
},
},
]

View File

@@ -7,58 +7,53 @@
// custom settings, run `zed: open default settings` from the
// command palette (cmd-shift-p / ctrl-shift-p)
{
"ui_font_size": 15.0,
"buffer_font_weight": 400.0,
"drag_and_drop_selection": {
"delay": 0,
"enabled": true
"enabled": true,
},
"terminal": {
"font_family": ".ZedMono",
"detect_venv": "off",
"font_size": 14
"font_size": 14,
},
"show_wrap_guides": true,
"title_bar": {
"show_sign_in": false
"show_sign_in": false,
},
"git_panel": {
"default_width": 320.0
"default_width": 280.0,
},
"outline_panel": {
"default_width": 320.0
"default_width": 280.0,
},
"notification_panel": {
"dock": "right"
"dock": "right",
},
"debugger": {
"dock": "bottom"
"dock": "bottom",
},
"edit_predictions": {
"mode": "subtle",
"copilot": {
"proxy": null,
"proxy_no_verify": null
"proxy_no_verify": null,
},
"enabled_in_text_threads": false
"enabled_in_text_threads": false,
},
"telemetry": {
"diagnostics": false,
"metrics": false
"metrics": false,
},
"base_keymap": "VSCode",
"buffer_font_features": {
"calt": false,
"NWID": true
},
"ui_font_size": 14,
"buffer_font_family": "Iosevka Terminal Wide",
"buffer_font_size": 14,
"buffer_line_height": "comfortable",
"project_panel": {
"default_width": 320.0,
"default_width": 280.0,
"scrollbar": {
"show": "never"
},
"entry_spacing": "standard"
"show": "never",
}
},
"tab_size": 4,
"format_on_save": "off",
@@ -68,24 +63,24 @@
"soft_wrap": "editor_width",
"git": {
"inline_blame": {
"enabled": false
}
"enabled": false,
},
},
"collaboration_panel": {
"button": false
"button": false,
},
"agent": {
"enabled": false
"enabled": false,
},
"features": {
// "copilot": false,
"edit_prediction_provider": "none"
"edit_prediction_provider": "none",
},
// "vim_mode": true,
"languages": {
"Haskell": {
"tab_size": 2
}
"tab_size": 2,
},
},
////// LSP config //////
"lsp": {
@@ -94,20 +89,20 @@
"texlab": {
"build": {
"onSave": true,
"forwardSearchAfter": false
}
}
}
"forwardSearchAfter": false,
},
},
},
},
"clangd": {
"binary": {
"ignore_system_version": true,
"path": "/opt/homebrew/opt/llvm/bin/clangd",
"arguments": []
}
}
"arguments": [],
},
},
},
"file_types": {
"Cython":["sage"]
}
"Cython": ["sage"],
},
}

View File

@@ -0,0 +1,9 @@
[
{
"label": "forward_search",
"command": "/Applications/Skim.app/Contents/SharedSupport/displayline -g $ZED_ROW $ZED_DIRNAME/$ZED_STEM.pdf",
"allow_concurrent_runs": false,
"reveal": "never",
"hide": "always"
}
]