Skip to content

Commit

Permalink
Add Helix config section to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasschafer committed Dec 11, 2024
1 parent 658bdab commit dce44d0
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,18 @@ cd scooter
cargo install --path . --locked
```

## Neovim configuration
## Editor configuration

### Helix

If you are using Helix in Tmux, you can add a keymap like the following to open up Scooter in a floating pane above your editor. The below uses `<return-s>` but this can of course be changed.

```toml
[keys.select.ret]
s = ":sh tmux popup -xC -yC -w90% -h90% -E scooter"
```

### Neovim

If you use Neovim you may want to set up Scooter to run as a floating terminal window, allowing you to use it without leaving your editor. To do so, install Toggleterm as per the instructions [here](https://github.com/akinsho/toggleterm.nvim?tab=readme-ov-file#installation), and then add the following Lua configuration, which opens up Scooter with `<leader>s`:

Expand Down

0 comments on commit dce44d0

Please sign in to comment.