Skip to content
ironlegitPublic

About

Setup for LazyVim

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

53 Commits

Folders and files

Repository files navigation

💤 RoboVim

This is a basic LazyVim setup that has been optimised primarily for use as a Python dev environment.

Custom Keymaps

Navigation

Keymap Description
<leader>än Open a new tab
<leader>äc Close the current tab
<leader>äd Open the Dashboard

Python

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()

Quarto & Markdown

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

Quarto (Python)

To use Quarto to work in notebooks and produce neat reports, set up Poetry and add the following packages:

  • poetry add nbformat
  • poetry add jupyter

TODO: The Code Diagnostic doesn't work very well in Quarto.

Use surround

| 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        |

Documentation

About

Setup for LazyVim

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages