This is a basic LazyVim setup that has been optimised primarily for use as a Python dev environment.
| Keymap | Description |
|---|---|
<leader>än |
Open a new tab |
<leader>äc |
Close the current tab |
<leader>äd |
Open the Dashboard |
| Keymap | Description |
|---|---|
<leader>üü |
Run the current Python file using Poetry |
<leader>üta |
Run all tests in the project using pytest (Poetry) |
<leader>ütt |
Run the current test file using pytest (Poetry) |
<leader>üp |
Insert a formatted f-string print(f"{var} : {var}") for the yanked variable. Automatically detects the variable name and preserves indentation. |
<leader>üo |
Surround the current line with print() |
| Keymap | Description |
|---|---|
<leader>öp |
Preview the current Quarto document |
<leader>öl |
Toggle LSP diagnostics (enable/disable) |
<leader>öt |
Insert a Table of Contents (ToC) for Markdown files |
<leader>öm |
Insert an aligned LaTeX math environment |
<leader>öc |
Insert a Quarto callout block |
<leader>öd |
Insert a centered <div> tag |
To use Quarto to work in notebooks and produce neat reports, set up Poetry and add the following packages:
poetry add nbformatpoetry add jupyter
TODO: The Code Diagnostic doesn't work very well in Quarto.
| Old Text | Command | New Text |
| ------------------------- | --------- | --------------------- |
| surr\*ound_words | ysiw) | (surround_words) |
| surr\*ound_words | ysiw( | ( surround_words ) |
| \*make strings | ys$" | "make strings" |
| [delete ar*ound me!] | ds] | delete around me! |
| remove <b>HTML t\*ags</b> | dst | remove HTML tags |
| 'change quot\*es' | cs'" | "change quotes" |
| <b>or tag\* types</b> | csth1<CR> | <h1>or tag types</h1> |
| delete(functi\*on calls) | dsf | function calls |
- Refer to the documentation to get started.
- Great resource LazyVim for Ambitious Developers