Comments (4)
Hi @OneOfOne. Thanks for reporting the issue.
Is the Vim option mousemoveevent
set?
:set mousemoveevent?
I just added a few optimizations (38dd659, 0f286e8, e8befc9). Is the problem resolved?
from nvim-scrollview.
It is not set, gonna try with the latest commits.
from nvim-scrollview.
Nope, still used 50-100% cpu and can barely move, with the mouse or the keyboard.
You can try locally, I think you might need Lsp setup with tsserver but turning off this addon solves the issue, where running LspStop doesn't change anything.
❯ mkdir /tmp/x && cd /tmp/x
mkdir: created directory '/tmp/x'
❯ yarn add react-native
❯ vim ./node_modules/react-native/index.js
from nvim-scrollview.
Following the steps you posted, I can see that there are many errors, with an entire column of "E" signs created by nvim-scrollview
.
However, movements work fine for me without any slowdown.
nvim-scrollview
creates floating windows to show the scrollbar and signs. I wonder if the creation of many such windows is causing another plugin to slow down.
Under the same environment, with index.js
loaded and LSP and other plugins running, if you disable nvim-scrollview
with :ScrollViewDisable
, presumably everything works fine. From there, with everything working fine, what happens if you manually create many floating windows? Do you encounter the same slowdown?
The following script creates a floating window for each row.
" create_floats.vim
let height = winheight(0)
let width = winwidth(0)
for row in range(height)
let buf = nvim_create_buf(v:false, v:true)
call nvim_buf_set_text(buf, 0, 0, 0, 0, [string(row)])
let popup = nvim_open_win(buf, 0, {
\ 'relative': 'editor',
\ 'row': row,
\ 'col': width - 2,
\ 'width': 2,
\ 'height': 1,
\ 'focusable': v:false,
\ 'style': 'minimal',
\ })
endfor
The script can be sourced from the index.js
buffer.
:source /path/to/create_floats.vim
Separately, if you load a large file without using LSP, but there are still many scrollview signs, do you still encounter the issue? This scenario can be tested with the following commands, which loads the builtin.txt
help file (which is large) and creates many textwidth signs (if you don't see these, then the steps aren't functioning as intended).
:help builtin.txt
:only
:ScrollViewEnable
:ScrollViewEnable textwidth
:set textwidth=1
from nvim-scrollview.
Related Issues (20)
- [question] disabling keybinds HOT 19
- Error related to Mappings. HOT 3
- Refresh mappings conflict with buffer-local mappings HOT 2
- Bug: E5108: Error executing lua [string ":lua"]:1: attempt to call field 'set_state' (a nil value) HOT 3
- Bug: Scrollview signs+null-ls causes nvim crash on ":set nu" or ":%s" replace HOT 1
- Issues with Winblend and Transparent Terminal Background HOT 6
- Feature Request: set some sign inside the scrollbars HOT 9
- `winblend` is not respected on hovering signs HOT 2
- Changing `list/nolist` or `listchars` crashes nvim with `trail` sign enabled at startup config HOT 3
- Add support for gitsigns HOT 4
- Pointer position is not adjusted when `winbar` is set HOT 1
- Signs won't go away HOT 4
- Search sign colors HOT 3
- [Question] How to add a horizontal scrollbar ? HOT 2
- nvim-scrollview not seeing diagnostics from coc.nvim HOT 2
- Compatibility with 0.10 extmark sign HOT 2
- Cursor positions changes undeterminably while scrolling past it HOT 4
- Cursor moves to bottom left of window when dragging scrollbar with wrapped lines
- gitsigns spacing and colour HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nvim-scrollview.