Skip to content

Insert mode color displayed when opening a file from telescope #7

@cameronr

Description

@cameronr

Steps to reproduce:

  1. Start with a buffer open
  2. Open another buffer via :Telescope find_files (either the cmd or a keymap)

Expected: the new buffer is opened and the normal mode CursorLineNr highlight is displayed
Actual: the new buffer is opened but the insert mode CursorlineNr highght is displayed.

Oct-24-2024 11-14-56

This happens because nvim sends a ModeChanged event to insert mode for typing into the Telescope window, as expected. However, there doesn't seem to be a ModeChanged event back to normal mode when the Telescope window closes and the new buffer is opened.

I have a workaround and will submit a PR shortly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions