vim-grammarous icon indicating copy to clipboard operation
vim-grammarous copied to clipboard

No information window shown using neovim

Open jkunlin opened this issue 7 years ago • 8 comments

After using ":GrammarousCheck" command, it highlights the errors. But there is not information window when I move cursor on the locations.

jkunlin avatar May 16 '17 04:05 jkunlin

Let me confirm one thing. After errors are highlighted, does moving cursor to the highlighted area open information window?

rhysd avatar May 19 '17 11:05 rhysd

Sometimes It will and sometimes will not.

For example, if I select one line from head to tail in visual mode, and run ":GrammarousCheck", then moving cursor to the highlighted area doesn't open information window. But when I select this line from tail to head, and run the command again, the information window will be shown.

jkunlin avatar May 20 '17 02:05 jkunlin

Got the same issue. While I now know that selecting from tail to head is a little workaround.

befedo avatar Jun 30 '17 19:06 befedo

I noticed that this is current expected behavior. To see the first error, we need to jump the cursor to first error position.

However, I agree that showing information window automatically is also useful. I think adding a new variable to control the behavior is a good way to do that.

rhysd avatar Jul 02 '17 14:07 rhysd

I implemented the feature in f02ce8e. Please try the latest with below config:

let g:grammarous#show_first_error = 1

Default value of the variable is 0 because of compatibility.

rhysd avatar Jul 02 '17 14:07 rhysd

As @rhysd said,

I noticed that this is current expected behavior....

I got little confused by this behaviour. As a user who was new to vim-grammarous, I just did what README told me, and

let g:grammarous#move_to_first_error = 0
let g:grammarous#show_first_error = 1

Now, sometimes I got the information window, sometimes didn't. I've tried to sum up some rules. When the first time I opened a text file, the vim cursor has been located at the beginning, and if I just type :GrammarousCheck, information window will never show up. If I move the cursor down to at least the end of the first error before do :GrammarousCheck, the window shows.

And I'm using MacVIM,

$ vim --version
VIM - Vi IMproved 8.1 (2018 May 17, compiled Jun 17 2018 23:04:26)
macOS version
Included patches: 1-72

junchih avatar Jul 12 '18 07:07 junchih

Hi, has there been any progress on this issue? I am experiencing it myself using neovim v.05.

RonanMacF avatar Sep 27 '20 14:09 RonanMacF

This issue still exists. The proposed fix doesn't help. The curser moves to the first error, but the information windows still doesn't show up.

domi-eck avatar Mar 31 '23 13:03 domi-eck