vim-grammarous
vim-grammarous copied to clipboard
No information window shown using neovim
After using ":GrammarousCheck" command, it highlights the errors. But there is not information window when I move cursor on the locations.
Let me confirm one thing. After errors are highlighted, does moving cursor to the highlighted area open information window?
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.
Got the same issue. While I now know that selecting from tail to head is a little workaround.
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.
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.
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
Hi, has there been any progress on this issue? I am experiencing it myself using neovim v.05.
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.