Skip to content

Commit

Permalink
Add an even quicker way to get a scratch isolated nvim.
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian committed Jun 7, 2024
1 parent dab10cc commit 6ac7bea
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ retest *test_files=tests:
nvim setup_table='{}' *ARGS='':
nvim -u {{ init_lua }} -c "lua require('lean').setup{{ setup_table }}" {{ ARGS }}

# Run an instance of neovim with a scratch buffer for interactive testing.
scratch *ARGS='':
# still no idea why the extra :edit is required to get the LSP alive
@just nvim '{ lsp = { enable = true }, mappings = true }' +edit {{ ARGS }} JustScratch.lean

# Coarsely profile how long the whole test suite takes to run.
profile-test *ARGS: _rebuild-test-fixtures _clone-test-dependencies
hyperfine --warmup 2 {{ ARGS }} "just retest"
Expand Down

0 comments on commit 6ac7bea

Please sign in to comment.