mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
feat: Add zed & awesomeWM config
This commit is contained in:
parent
cb501820b7
commit
346a975e80
12 changed files with 843 additions and 35 deletions
62
tools/zed/keymap.json
Executable file
62
tools/zed/keymap.json
Executable file
|
|
@ -0,0 +1,62 @@
|
|||
// $DOTFILES/tools/zed/keymaps.json
|
||||
// Date: 2025-01-25
|
||||
// Author: js0ny
|
||||
// Description: Zed keymaps
|
||||
|
||||
// Location:
|
||||
// GNU/Linux: ~/.config/zed/keymaps.json
|
||||
// Windows: %APPDATA%\Zed\keymaps.json
|
||||
// Linking: (link the whole directory)
|
||||
// ln -sf $DOTFILES/tools/zed ~/.config/zed
|
||||
|
||||
// Zed keymap
|
||||
|
||||
//
|
||||
|
||||
// For information on binding keys, see the Zed
|
||||
|
||||
// documentation: https://zed.dev/docs/key-bindings
|
||||
|
||||
//
|
||||
|
||||
// To see the default key bindings run `zed: open default keymap`
|
||||
|
||||
// from the command palette.
|
||||
|
||||
[
|
||||
{
|
||||
"context": "Workspace",
|
||||
|
||||
"bindings": {
|
||||
// "shift shift": "file_finder::Toggle"
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
"context": "Editor",
|
||||
|
||||
"bindings": {
|
||||
// "j k": ["workspace::SendKeystrokes", "escape"]
|
||||
}
|
||||
},
|
||||
{
|
||||
"context": "vim_mode == normal || vim_mode == visual",
|
||||
|
||||
"bindings": {
|
||||
"N": "vim::JoinLines",
|
||||
"l": "vim::InsertBefore",
|
||||
"L": "vim::InsertFirstNonWhitespace"
|
||||
}
|
||||
},
|
||||
{
|
||||
"context": "vim_mode == normal || vim_mode == visual || vim_mode == operator",
|
||||
|
||||
"bindings": {
|
||||
"n": "vim::Down",
|
||||
"e": "vim::Up",
|
||||
"i": "vim::Right",
|
||||
"k": "search::SelectNextMatch",
|
||||
"K": "search::SelectPrevMatch"
|
||||
}
|
||||
}
|
||||
]
|
||||
30
tools/zed/settings.json
Normal file
30
tools/zed/settings.json
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
// $DOTFILES/tools/zed/settings.json
|
||||
// Date: 2025-01-25
|
||||
// Author: js0ny
|
||||
// Description: Zed settings (jsonc)
|
||||
|
||||
// Location:
|
||||
// GNU/Linux: ~/.config/zed/settings.json
|
||||
// Windows: %APPDATA%\Zed\settings.json
|
||||
// Linking: (link the whole directory)
|
||||
// ln -sf $DOTFILES/tools/zed ~/.config/zed
|
||||
//
|
||||
// Zed settings
|
||||
//
|
||||
// For information on how to configure Zed, see the Zed
|
||||
// documentation: https://zed.dev/docs/configuring-zed
|
||||
//
|
||||
// To see all of Zed's default settings without changing your
|
||||
// custom settings, run `zed: open default settings` from the
|
||||
// command palette (cmd-shift-p / ctrl-shift-p)
|
||||
{
|
||||
"vim_mode": true,
|
||||
"ui_font_size": 16,
|
||||
"buffer_font_size": 16,
|
||||
"theme": {
|
||||
"mode": "dark",
|
||||
"light": "One Light",
|
||||
"dark": "One Dark"
|
||||
},
|
||||
"relative_line_numbers": true
|
||||
}
|
||||
28
tools/zed/snippets/c.json
Executable file
28
tools/zed/snippets/c.json
Executable file
|
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"main": {
|
||||
"prefix": "main",
|
||||
"body": [
|
||||
"int main() {",
|
||||
" $1",
|
||||
" return 0;",
|
||||
"}"
|
||||
],
|
||||
"description": "Main function with no arguments"
|
||||
},
|
||||
"mainn": {
|
||||
"prefix": "mainn",
|
||||
"body": [
|
||||
"",
|
||||
"int main(int argc, char *argv[]) {",
|
||||
" $1",
|
||||
" return 0;",
|
||||
"}"
|
||||
],
|
||||
"description": "Main function with arguments"
|
||||
},
|
||||
"once": {
|
||||
"prefix": "#once",
|
||||
"body": ["#ifndef $1", "#define $1", "", "$2", "", "#endif"],
|
||||
"description": "Include guard"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue