Skip to content

Commit

Permalink
Add Zed configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Rypac committed Jan 12, 2025
1 parent 05ac45d commit b6b8f76
Show file tree
Hide file tree
Showing 4 changed files with 87 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ nvim/plugin/zzz_*.lua
nvim/after/ftplugin/*/aaa_*.lua
nvim/after/ftplugin/*/zzz_*.lua

zed/*
!zed/keymap.json
!zed/settings.json

zsh/*
!zsh/.zprofile
!zsh/.zshenv
Expand Down
1 change: 1 addition & 0 deletions dotfiles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ dotfiles_link() {
link npm "$XDG_CONFIG_HOME/npm"
link nvim "$XDG_CONFIG_HOME/nvim"
link tig "$XDG_CONFIG_HOME/tig"
link zed "$XDG_CONFIG_HOME/zed"
link zsh "$XDG_CONFIG_HOME/zsh"
link zsh/.zshenv "$HOME/.zshenv"

Expand Down
24 changes: 24 additions & 0 deletions zed/keymap.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[
{
"context": "Editor && vim_mode == normal",
"bindings": {
"alt-k": "editor::MoveLineUp",
"alt-j": "editor::MoveLineDown",
"ctrl-n": ["editor::SelectNext", { "replace_newest": false }],
"ctrl-p": ["editor::SelectPrevious", { "replace_newest": true }],
"g ctrl-n": "editor::SelectAllMatches"
}
},
{
"context": "Editor && vim_mode == visual",
"bindings": {
"alt-k": "editor::MoveLineUp",
"alt-j": "editor::MoveLineDown",
"ctrl-n": ["editor::SelectNext", { "replace_newest": false }],
"ctrl-s": ["editor::SelectNext", { "replace_newest": true }],
"ctrl-p": ["editor::SelectPrevious", { "replace_newest": true }],
"g ctrl-n": "editor::SelectAllMatches",
"shift-s": ["vim::PushOperator", { "AddSurrounds": {} }]
}
}
]
58 changes: 58 additions & 0 deletions zed/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"auto_update": false,
"features": {
"inline_completion_provider": "none"
},
"assistant": {
"version": "2",
"enabled": false
},
"collaboration_panel": {
"button": false
},
"chat_panel": {
"button": "never"
},
"notification_panel": {
"button": false
},
"base_keymap": "SublimeText",
"vim_mode": true,
"vim": {
"use_multiline_find": true,
"use_smartcase_find": true
},
"buffer_font_family": "Menlo",
"buffer_font_size": 12,
"cursor_blink": false,
"terminal": {
"blinking": "off",
"line_height": "standard"
},
"telemetry": {
"diagnostics": false,
"metrics": false
},
"languages": {
"Markdown": {
"soft_wrap": "editor_width"
}
},
"lsp": {
"hls": {
"initialization_options": {
"haskell": {
"formattingProvider": "fourmolu",
"cabalFormattingProvider": "cabal-gild",
"plugin": {
"rename": {
"config": {
"crossModule": true
}
}
}
}
}
}
}
}

0 comments on commit b6b8f76

Please sign in to comment.