Personalized Development Environment(PDE)
- Transparency first.
- For coding
Rust
,Vue3
,Go
,Python
.
Note
manually install lsp and formatter.
use direnv
and nix-shell to manage the lsps formatters etc.(NixOS)
Language | LSP | Formatter | Linter |
---|---|---|---|
Go | gopls | goimports & gopls | - |
Rust | rust-analyzer | rustfmt | clippy |
Python | pyright | ruff | ruff |
Vue/TS/JS | Volar | eslint_d | eslint_d |
-
make (download tiktoken_core library for
CopilotChat.nvim
) -
cargo (build the fuzzy binary for
blink.cmp
) -
nodejs > 18.x (
copilot
)
Key | Description | Mode |
---|---|---|
H | first char of the line | n, v |
L | end of the line | n, v |
jj | exit insert mode | i |
Up | increase window height | n |
Down | decrease window height | n |
Left | decrease window width | n |
Right | increase window width | n |
C-h | left window | n |
C-j | lower window | n |
C-k | upper window | n |
C-l | right window | n |
M-j | move down | n, i, v |
M-k | move up | n, i, v |
leader + w | save file | n |
leader + W | save files | n |
leader + q | quit | n |
leader + Q | force quit | n |
leader + _ | split below | n |
leader + | | split right | n |
Key | Description | Mode |
---|---|---|
gd | goto definition | n |
gD | goto declaration | n |
gr | references | n |
gi | goto implementation | n |
gt | goto type definition | n |
K | hover | n |
gK | signature help | n |
C-k | signature help | i |
[d | next diagnostic | n |
]d | prev diagnostic | n |
leader + ca | [c]ode [a]ction | n |
leader + cc | [c]ode [c]odelens run | n |
leader + cC | [c]ode [C]odelens display | n |
leader + cd | [c]ode [d]iagnostic | n |
leader + cf | [c]ode [f]ormat | n, v |
leader + cr | [c]ode [r]ename | n |
leader + ll | [l]sp [l]og | n |
leader + li | [l]sp [i]nfo | n |
leader + lr | [l]sp [r]estart | n |
Key | Description | Mode |
---|---|---|
leader + fb | [b]uffers | n |
leader + fc | [c]ontent in open buffers | n |
leader + fd | [d]iagnostics | n |
leader + ff | [f]iles | n |
leader + fg | [g]rep | n |
leader + fl | [l]ines(buffer) | n |
leader + fp | [p]rojects | n |
leader + fr | [r]ecent files | n |
leader + fR | [R]esume | n |
leader + fs | [s]ymbols | n |
leader + fS | [S]ymbols(workspace) | n |
leader + fT | [T]odos | n |
leader + fu | [u]ndo | n |
leader + fw | [w]ord | n, v |
Key | Description | Mode |
---|---|---|
[b | prev buffer | n |
]b | next buffer | n |
leader + bc | pick [c]lose | n |
leader + bd | [d]elete buffer | n |
leader + bD | [D]elete other | n |
leader + bp | buffer [p]ick | n |
leader + bH | close to the left | n |
leader + bL | close to the right | n |
leader + b[ | buffer move prev | n |
leader + b[ | buffer move next | n |
Key | Description | Mode |
---|---|---|
[g | prev hunk | n |
]g | next hunk | n |
leader + gb | [b]lame line | n |
leader + gd | [d]iff this | n |
leader + gg | lazy[g]it | n |
leader + gp | [p]review hunk | n |
Key | Description | Mode |
---|---|---|
leader + db | toggle [b]reakpoint | n |
leader + dc | [c]ontinue | n |
leader + dC | run to [C]ursor | n |
leader + dt | [t]erminate | n |
leader + dr | [r]estart | n |
leader + dp | [p]ause | n |
leader + dO | step [O]ver | n |
leader + di | step [i]nto | n |
leader + do | step [o]ut | n |
leader + du | [u]i toggle | n |
Key | Description | Mode |
---|---|---|
leader + od | [d]iagnostic | n |
leader + of | [f]ormat(Global) | n |
leader + oF | [F]ormat(Buffer) | n |
leader + oh | [h]ints | n |
leader + ol | [l]ine number | n |
leader + oL | relative [L]ine number | n |
leader + os | [s]pell | n |
leader + ot | [t]reesitter | n |
leader + ow | [w]rap | n |
Key | Description | Mode |
---|---|---|
C-n | toggle file explorer | n |
Key | Description | Mode |
---|---|---|
leader + tr | [r]un | n |
leader + ta | [a]ttach | n |
leader + tf | [f]ile run | n |
leader + tl | [l]ast run | n |
leader + tx | stop[x] | n |
leader + to | [o]utput toggle | n |
leader + ts | [s]ummary toggle | n |
leader + tp | [p]anel toggle | n |
[t | prev failed test | n |
]t | next failed test | n |