sassanh / qnvim

Neovim backend for Qt Creator
MIT License
134 stars 8 forks source link

Remove cursor blinking #20

Closed Shatur closed 4 years ago

Shatur commented 4 years ago

Closes #12. I think that this should be a default as in Neovim, Neovim Qt, FakeVim and others. There is can be an option to disable it, but I suggest to provide it in future with other useful options. I added a private slot that saves cursorFlashTime to a variable (to restore it later) and sets application cursorFlashTime to zero. It also will listen for changes because the documentation says that this value can be changed by desktop settings. And I also restore the value after plugin toggling. Please fell free to make a suggestions about naming or style.