Coder Social home page Coder Social logo

Neovim CPU usage about vim-matchup HOT 6 CLOSED

andymass avatar andymass commented on May 20, 2024
Neovim CPU usage

from vim-matchup.

Comments (6)

amerov avatar amerov commented on May 20, 2024

I catched that it caused by enabling matchup_matchparen_deferred

from vim-matchup.

andymass avatar andymass commented on May 20, 2024

I take this issue very seriously. Can you please verify it happens with the minimal example init.vim:

set nocompatible

" change this path to where the plugin is located
let s:matchup = '~/.config/nvim/bundle/vim-matchup'

let &rtp  = s:matchup . ',' . &rtp
let &rtp .= ',' . s:matchup . '/after'

filetype plugin indent on
syntax on 

" relevant options here
let g:matchup_matchparen_deferred = 1

from vim-matchup.

amerov avatar amerov commented on May 20, 2024

with above config it is ok.
it happens with airline.

from vim-matchup.

andymass avatar andymass commented on May 20, 2024

I think I can reproduce this:

  with airline only: 0% CPU
  with match-up only: 0% CPU
  with airline and match-up: 3--4% CPU

It makes no sense. When the cursor is not moving, the deferred timer is in a paused state and should consume no CPU. I verified the callback is not being triggered when the cursor is not moving. I don't see why it relates to airline.

This might be a neovim bug, and it might be related to this neovim/neovim#7871

from vim-matchup.

andymass avatar andymass commented on May 20, 2024

cf. neovim/neovim#8188

from vim-matchup.

andymass avatar andymass commented on May 20, 2024

Fixed in neovim 0.3.0, recently released.

from vim-matchup.

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.