Skip to content

Commit 3ad899c

Browse files
author
Niko Korvenlaita
committed
stuff
1 parent f3b6229 commit 3ad899c

3 files changed

Lines changed: 46 additions & 35 deletions

File tree

‎dotfiles/zed/keymap.json‎

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"bindings": {
66
"tab": "editor::Tab",
77
"cmd-]": "window::ShowNextWindowTab",
8-
"cmd-[": "window::ShowPreviousWindowTab"
9-
}
8+
"cmd-[": "window::ShowPreviousWindowTab",
9+
},
1010
},
1111
// improving completion
1212
// need to overwrite some defaults to get bit better, but not possible yet
@@ -15,24 +15,24 @@
1515
"context": "Editor && edit_prediction && !showing_completions",
1616
"bindings": {
1717
"tab": "editor::Tab",
18-
"ctrl-y": "editor::AcceptEditPrediction"
19-
}
18+
"ctrl-y": "editor::AcceptEditPrediction",
19+
},
2020
},
2121
{
2222
"context": "Editor && showing_completions",
2323
"bindings": {
2424
"tab": "editor::Tab",
2525
"enter": "editor::Newline",
26-
"ctrl-y": "editor::ConfirmCompletion"
27-
}
26+
"ctrl-y": "editor::ConfirmCompletion",
27+
},
2828
},
2929
{
3030
"context": "Editor && showing_code_actions",
3131
"bindings": {
3232
"tab": "editor::Tab",
3333
"enter": "editor::Newline",
34-
"ctrl-y": "editor::ConfirmCodeAction"
35-
}
34+
"ctrl-y": "editor::ConfirmCodeAction",
35+
},
3636
},
3737
// pane navigation
3838
{
@@ -41,37 +41,37 @@
4141
"ctrl-w h": "workspace::ActivatePaneLeft",
4242
"ctrl-w l": "workspace::ActivatePaneRight",
4343
"ctrl-w k": "workspace::ActivatePaneUp",
44-
"ctrl-w j": "workspace::ActivatePaneDown"
44+
"ctrl-w j": "workspace::ActivatePaneDown",
4545
// ... or other keybindings
46-
}
46+
},
4747
},
4848
// placeholders for vim bindings
4949
{
5050
"context": "Editor && (vim_mode == normal || vim_mode == visual) && !VimWaiting && !menu",
5151
"bindings": {
5252
// put key-bindings here if you want them to work in normal & visual mode
53-
}
53+
},
5454
},
5555
{
5656
"context": "Editor && vim_mode == normal && !VimWaiting && !menu",
5757
"bindings": {
5858
// put key-bindings here if you want them to work only in normal mode
5959
// "down": ["workspace::SendKeystrokes", "4 j"]
6060
// "up": ["workspace::SendKeystrokes", "4 k"]
61-
}
61+
},
6262
},
6363
{
6464
"context": "Editor && vim_mode == visual && !VimWaiting && !menu",
6565
"bindings": {
6666
// visual, visual line & visual block modes
67-
}
67+
},
6868
},
6969
{
7070
"context": "Editor && vim_mode == insert && !menu",
7171
"bindings": {
7272
// put key-bindings here if you want them to work in insert mode
7373
// e.g.
7474
// "j j": "vim::NormalBefore" // remap jj in insert mode to escape.
75-
}
76-
}
75+
},
76+
},
7777
]

‎dotfiles/zed/settings.json‎

Lines changed: 29 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -46,24 +46,33 @@
4646
"mode": "subtle",
4747
"copilot": {
4848
"proxy": null,
49-
"proxy_no_verify": null
49+
"proxy_no_verify": null,
5050
},
51-
"enabled_in_text_threads": false
51+
"enabled_in_text_threads": false,
5252
},
5353
"features": {
54-
"edit_prediction_provider": "zed"
54+
"edit_prediction_provider": "zed",
5555
},
5656
"agent": {
5757
"always_allow_tool_actions": true,
5858
"default_model": {
5959
"provider": "zed.dev",
60-
"model": "claude-opus-4-1"
60+
"model": "claude-opus-4-1",
6161
},
62-
"model_parameters": []
62+
"model_parameters": [],
6363
},
6464
"languages": {
65+
"Python": {
66+
"language_servers": [
67+
// Disable basedpyright and enable ty, and otherwise
68+
// use the default configuration.
69+
"ty",
70+
"!basedpyright",
71+
"...",
72+
],
73+
},
6574
"SQL": {
66-
"tab_size": 2
75+
"tab_size": 2,
6776
},
6877
"Markdown": {
6978
"formatter": {
@@ -73,15 +82,15 @@
7382
"--prose-wrap",
7483
"always",
7584
"--stdin-filepath",
76-
"{buffer_path}"
77-
]
78-
}
85+
"{buffer_path}",
86+
],
87+
},
7988
},
80-
"format_on_save": "on"
89+
"format_on_save": "on",
8190
},
8291
"Java": {
83-
"format_on_save": "off"
84-
}
92+
"format_on_save": "off",
93+
},
8594
// "TypeScript": {
8695
// "language_servers": ["tsgo"]
8796
// }
@@ -100,14 +109,14 @@
100109
// don't allow cursor to reach edges of screen
101110
"vertical_scroll_margin": 20,
102111
"tab_bar": {
103-
"show": false
112+
"show": false,
104113
},
105114
"format_on_save": "on",
106115
"lsp": {
107116
"jdtls": {
108117
"settings": {
109-
"lombok_support": true
110-
}
118+
"lombok_support": true,
119+
},
111120
},
112121
"rust-analyzer": {
113122
"initialization_options": {
@@ -118,21 +127,21 @@
118127
// },
119128
"checkOnSave": true,
120129
"cargo": {
121-
"allTargets": false
130+
"allTargets": false,
122131
// "buildScripts": {
123132
// // "rebuildOnSave": false,
124133
// "useRustcWrapper": false
125134
// },
126135
// "extraEnv": {
127136
// "RUSTC_WRAPPER": "/opt/homebrew/bin/sccache"
128137
// }
129-
}
138+
},
130139
// "check": {
131140
// "overrideCommand": [
132141
// "cargo check --quiet --workspace --message-format=json"
133142
// ]
134143
// }
135-
}
136-
}
137-
}
144+
},
145+
},
146+
},
138147
}

‎nipsulidotfiles.sh‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,8 @@ nipsulidotfiles::setup_git() {
273273
echo
274274
git config --global user.signingkey "${keyid}"
275275
git config --global commit.gpgsign true
276+
# setup wt
277+
brew install max-sixty/worktrunk/wt && wt config shell install
276278
nipsulidotfiles::log_success "Git & GitHub setup complete"
277279
}
278280

0 commit comments

Comments
 (0)