mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
zed initial setup
This commit is contained in:
parent
da0cc1d6e8
commit
56faf63bd2
5 changed files with 66 additions and 6 deletions
|
|
@ -23,6 +23,8 @@
|
|||
|
||||
// from the command palette.
|
||||
|
||||
// https://github.com/zed-industries/zed/tree/main/assets/keymaps
|
||||
// Sequence: https://zed.dev/docs/key-bindings#remapping-keys
|
||||
[
|
||||
{
|
||||
"context": "Workspace",
|
||||
|
|
@ -45,7 +47,19 @@
|
|||
"bindings": {
|
||||
"N": "vim::JoinLines",
|
||||
"l": "vim::InsertBefore",
|
||||
"L": "vim::InsertFirstNonWhitespace"
|
||||
"L": "vim::InsertFirstNonWhitespace",
|
||||
"H": "pane::ActivatePrevItem",
|
||||
"I": "pane::ActivateNextItem"
|
||||
}
|
||||
},
|
||||
{
|
||||
"context": "vim_mode == normal || not_editing || EmptyPane",
|
||||
|
||||
"bindings": {
|
||||
"space space": "file_finder::Toggle",
|
||||
"space ;": "command_palette::Toggle",
|
||||
"space f c": "zed::OpenSettings",
|
||||
"space f e c": "zed::OpenSettings"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
@ -56,7 +70,9 @@
|
|||
"e": "vim::Up",
|
||||
"i": "vim::Right",
|
||||
"k": "search::SelectNextMatch",
|
||||
"K": "search::SelectPrevMatch"
|
||||
"K": "search::SelectPrevMatch",
|
||||
"N": ["workspace::SendKeystrokes", "n n n n n"],
|
||||
"E": ["workspace::SendKeystrokes", "e e e e e"]
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
|
|||
|
|
@ -27,5 +27,7 @@
|
|||
"light": "Catppuccin Latte",
|
||||
"dark": "Catppuccin Mocha"
|
||||
},
|
||||
"relative_line_numbers": true
|
||||
"relative_line_numbers": true,
|
||||
"buffer_font_family": "JetBrainsMono Nerd Font",
|
||||
"remove_trailing_whitespace_on_save": true
|
||||
}
|
||||
|
|
|
|||
27
tools/zed/snippets/org.json
Normal file
27
tools/zed/snippets/org.json
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
"src": {
|
||||
"prefix": "src",
|
||||
"body": ["#+begin_src $1", "$0", "#+end_src"],
|
||||
"description": "Source code block"
|
||||
},
|
||||
"ex": {
|
||||
"prefix": "ex",
|
||||
"body": ["#+begin_example", "$0", "#+end_example"],
|
||||
"description": "Example block"
|
||||
},
|
||||
"begin": {
|
||||
"prefix": "begin",
|
||||
"body": ["#+begin_$1", "$0", "#+end_$1"],
|
||||
"description": "Begin block"
|
||||
},
|
||||
"【【": {
|
||||
"prefix": "[[",
|
||||
"body": ["[[$0]]"],
|
||||
"description": "Chinese link"
|
||||
},
|
||||
"elisp": {
|
||||
"prefix": "elisp",
|
||||
"body": ["#+begin_src emacs-lisp :tangle yes", "$0", "#+end_src"],
|
||||
"description": "Emacs Lisp code block"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue