Git Product home page Git Product logo

Comments (12)

wellle avatar wellle commented on May 21, 2024 2

@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.

lervag avatar lervag commented on May 21, 2024 2

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.

exdeniz avatar exdeniz commented on May 21, 2024 1

I have this issues on start nvim from tmux. Switching to 23-nvim-no-redraw and problem solved.

from context.vim.

wookayin avatar wookayin commented on May 21, 2024 1

Hey @wellle, would you want to make this feature merged to master but actually configurable by some g: variable?

from context.vim.

jasonkena avatar jasonkena commented on May 21, 2024 1

@lervag @wellle Pretty sure it should be
let g:context_nvim_no_redraw = 1

from context.vim.

wellle avatar wellle commented on May 21, 2024 1

@jasonkena: Thanks, fixed above ๐Ÿ‘

from context.vim.

wookayin avatar wookayin commented on May 21, 2024

Additional information: Without floating windows (i.e. g:context_presenter = 'preview'), it works well without flickering.

from context.vim.

wookayin avatar wookayin commented on May 21, 2024

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.

syphar avatar syphar commented on May 21, 2024

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.

wellle avatar wellle commented on May 21, 2024

Yes that sounds like a good idea ๐Ÿ‘

from context.vim.

wellle avatar wellle commented on May 21, 2024

@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.

lervag avatar lervag commented on May 21, 2024

I still experience quite severe flickering, both with and without this setting.

from context.vim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.