You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since `which-key` interjects when writing commands it can effectively limit the
20
+
number of modes available to the user.
21
+
22
+
This varies by configuration. An example is having the `operators` preset enabled
23
+
will prevent the user from entering the operator pending mode. Since this mode cannot
24
+
be reached this plugin cannot not do anything special in the operator pending state,
25
+
since it effectively does not exist.
26
+
27
+
This is expected behavior by `which-key`: [ISSUE #534](https://github.com/folke/which-key.nvim/issues/534)
28
+
29
+
## Telescope Opening File
30
+
31
+
Since `telescope` performs several mode change operations to enable previewing and
32
+
other nice things like setting `marks` when changing buffers there are scenarios
33
+
where a `markdown` file will not render when it is initially opened through `telescope`.
34
+
35
+
An example of this is when opening a file using `live_grep` and default settings.
36
+
The issue stems from `telescope` running two `normal` mode commands in the process
37
+
of opening a file. At the time of writing these are:
38
+
39
+
- Center preview windows on the correct line: [here](https://github.com/nvim-telescope/telescope.nvim/blob/master/lua/telescope/previewers/buffer_previewer.lua#L549)
40
+
- Set a `mark` prior to opening a file: [here](https://github.com/nvim-telescope/telescope.nvim/blob/master/lua/telescope/actions/set.lua#L177)
41
+
42
+
Something about the way these are done causes the file to appear be opened in `insert`
43
+
mode despite being in `normal` mode. Additionally there is no `ModeChanged` event
44
+
that occurs after this to go back to `normal` mode.
0 commit comments