Comments (12)
@wookayin: Thanks! Yeah I wish we wouldn't need the hard redraw. There's a redraw issue in Neovim's floating window implementation, I opened an issue about it here: neovim/neovim#11597
As a workaround I added a hard redraw. If you want to try this plugin without that redraw, you try use this branch:
https://github.com/wellle/context.vim/compare/23-nvim-no-redraw
from context.vim.
Ah, yes. My brain was doing something else, sorry. With that, I can confirm there is no flickering, but I do see the artifacts. :\
from context.vim.
I have this issues on start nvim from tmux. Switching to 23-nvim-no-redraw and problem solved.
from context.vim.
Hey @wellle, would you want to make this feature merged to master but actually configurable by some g:
variable?
from context.vim.
@lervag @wellle Pretty sure it should be
let g:context_nvim_no_redraw = 1
from context.vim.
@jasonkena: Thanks, fixed above ๐
from context.vim.
Additional information: Without floating windows (i.e. g:context_presenter = 'preview'
), it works well without flickering.
from context.vim.
Thanks @wellle for the information; it is super helpful. Temporarily disabling redraw (:mode
) makes me feel more comfortable, and I would work around with this. Look forward to the upstream neovim issue being fixed.
from context.vim.
I also switched to the version without redraw because of the flickering and performance.
(and yes, sometimes there are small rendering issues / remains of the closed context, but that annoys me less than the performance / flicker)
edit:
i was wrong, switched back again.
from context.vim.
Yes that sounds like a good idea ๐
from context.vim.
@wookayin @sirupsen @lervag @jasonkena @exdeniz: I added a setting in #66 so you can disable the redraw on updated master now. Add this to your vimrc:
let g:context_nvim_no_redraw = 1
from context.vim.
I still experience quite severe flickering, both with and without this setting.
from context.vim.
Related Issues (20)
- Doesn't work on windows vim 8.2 HOT 2
- Plugin breaks vim's visual-block append. HOT 2
- remove <context.vim> in the upper right corner HOT 3
- Can't install with Pathogen HOT 2
- ใE28 No highlight group name๏ผCommentใ
- Auto commands are not disabled by g:context_filetype_blacklist
- Support getting context of topmost line (regardless of cursor position) HOT 1
- Slow scrolling in perl files HOT 5
- Add name to filetype so it can be ignored by other plugins more easily
- Bug: When in select/selection mode it will jump back into normal mode
- Opens a [Scratch] window when using CtrlP or NerdTree
- [Feature Request] Return the number of lines context.vim would take if the user was to press `zt` HOT 4
- stray background text not painted over in the context window when scrolling with Ctrl+D
- Context doesn't update when switching buffers with fzf.vim HOT 1
- [Question] is there a way to show a "header" when the matched line is a single `{`
- Feature request: syntax highlighting in context lines
- refreshing the file with `:e` raises error in file with modeline
- context.vim doesn't play nice with coc diagnostic window HOT 1
- Conflict with nvim-notify
- C preprocessor handling
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 context.vim.