Skip to content

Commit 1223ef9

Browse files
authored
Merge pull request cursorless-dev#3 from fidgetingbits/neovim-docs
docs: Document shortcuts and how to send PRs
2 parents df23006 + 8b75a76 commit 1223ef9

File tree

1 file changed

+26
-13
lines changed

1 file changed

+26
-13
lines changed

cursorless.nvim/README.md

Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,8 @@
33
- [cursorless.nvim](#cursorlessnvim)
44
- [Prerequisites](#prerequisites)
55
- [Installation](#installation)
6-
- [Lazy installation](#lazy-installation)
7-
- [Manual installation](#manual-installation)
86
- [Configuration](#configuration)
9-
- [neovim configuration](#neovim-configuration)
10-
- [Talon configuration](#talon-configuration)
117
- [Frequently asked questions](#frequently-asked-questions)
12-
- [nvim does not support Lazy?](#nvim-does-not-support-lazy)
13-
- [nvim does not find the `neovim` globally installed package?](#nvim-does-not-find-the-neovim-globally-installed-package)
148
- [Contributors](#contributors)
159

1610
<!-- vim-markdown-toc -->
@@ -71,6 +65,31 @@ app: neovim
7165
tag(): user.cursorless
7266
```
7367

68+
## Configuration
69+
70+
### Keyboard shortcut
71+
72+
By default the keyboard shortcut used to communicate with cursorless is `<C-S-f12>`, but this might not work for
73+
everybody and is configurable. You can change it by passing a different value in the configuration options passed to
74+
`setup()`:
75+
76+
```lua
77+
require("cursorless").setup({ shortcut = `<C-Q>`})
78+
```
79+
80+
*IMPORTANT*: If you change this shortcut, be sure to set the corresponding neovim-talon setting. This can be done by
81+
having a `.talon` file somewhere in your talon user directory that contains the following:
82+
83+
```talon
84+
settings():
85+
user.neovim_command_server_shortcut = "ctrl-q"
86+
```
87+
88+
### Absolute row numbers
89+
90+
You MUST currently use absolute row numbers in order to target rows using cursorless. The `talon.nvim` plugin will
91+
configure this automatically, but your own config may be overriding it. Be sure to disable relative numbers.
92+
7493
## Frequently asked questions
7594

7695
### nvim does not support Lazy?
@@ -83,10 +102,4 @@ If you are on Linux, avoid using the snap package for `npm` as it may not be abl
83102

84103
## Contributors
85104

86-
You will need to add the `vim-scripts/BufOnly.vim` neovim plugin if you want to be able to run the tests. For instance, with lazy:
87-
88-
```lua
89-
require('lazy').setup({
90-
'vim-scripts/BufOnly.vim'
91-
})
92-
```
105+
Welcome! So glad you've decided to help make Cursorless in Neovim better. You'll want to start by getting [set up](https://github.com/saidelike/cursorless/blob/nvim-talon/docs/contributing/cursorless-in-neovim.md). You may also find the [Neovim API docs](https://neovim.io/doc/user/api.html) helpful to learn about Neovim extension development.

0 commit comments

Comments
 (0)