joshuadanpeterson / typewriter.nvim

A Neovim plugin that emulates a typewriter, keeping the cursor centered on the screen for a focused writing experience.
MIT License
23 stars 0 forks source link

Searching doesn't move cursor to the correct place #21

Open Rasmus-Bertell opened 1 month ago

Rasmus-Bertell commented 1 month ago

I think #17 introduced a bug which makes the cursor stay in it's place even when searching.

Steps to reproduce:

  1. Open the config file
  2. Search for M with /M
  3. Jump to next result with n
  4. Cursor is in the wrong place

My config file:

local M = { 'joshuadanpeterson/typewriter.nvim' }

M.opts = {}

return M
local M = { 'joshuadanpeterson/typewriter.nvim' }
      ^
      First match

M.opts = {}

return M
local M = { 'joshuadanpeterson/typewriter.nvim' }

M.opts = {}
^     ^
|     Cursor position
Second match

return M