-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mulitple citations (more than 3 or 4) on a single line slows down typing and motion movement #77
Comments
Are you using Vim or Neovim? Is |
neovim and nvim-treesitter is installed, but I removed highlighting for markdown, can it still affect zotcite performance? |
Thanks for the feedback! |
With four citations in a line, I can see a delay after pressing the space bar in Insert mode, but only if I have the following lines in my vim.g.mapleader = ' '
vim.g.maplocalleader = ' '
vim.keymap.set('', '<Space>', '<Nop>') There is no delay with the default |
|
I reverted back to the default keybinds for nvim, however, the same problem still persists, when in insert mode the slight delay is manageable (when calling on citations), however when writing normal sentences it can slow down work flow a little bit, especially when moving with the motion jklh vim-motion keys. |
I didn't see any slowness in Vim. But, in Neovim, the slowness persists even if I comment out line 652 of syn match zoteroKey /@\S*[A-Z0-9]\{8}#/ conceal So, my idea of using |
I just discovered that the delay that I was seeing was caused by a new feature that is being introduced in this pull request: R-nvim/R.nvim#116 I changed the default configuration to insert a native R pipe from |
|
Trying to see if the lag is CPU dependent, will check it out on a more modern CPU.
the above is mainly in *.r or *.rmd documents, I am using it in *.md files and the lag is visible, when moving with the jkhl keys. |
I'll soon merge the branch |
yes I will give it a try. |
The |
I am sorry, I have being encountering this error, the main reason I could not get back to you, I thought something went wrong and it will be fixed in the next update, but this is what I keep getting once I type @ and one or two letters, maybe the error is coming from me but I have gone through all my configs and I could not find what was wrong. |
ZotCite is a Python object, and the message above means that it wasn't created. Perhaps a Python dependency (PyYAML or sqlite3) is missing. |
Including more than 3 citations on a single line greatly reduces the typing speed and motion movement in that line, but other lines without citations are not affected.
Still use able but things become sluggish as typing continues, and their may even be a millisecond land between what is typed and and what is shown on the screen.
The text was updated successfully, but these errors were encountered: