GithubHelp home page GithubHelp logo

Comments (12)

hoob3rt avatar hoob3rt commented on May 21, 2024 2

try this way

    local lualine = require('lualine')
    lualine.sections = {
      lualine_a = { 'mode' },
      -- lualine_b = { 'branch' },
      lualine_c = { 'filename' },
      lualine_x = { 'encoding', 'fileformat', 'filetype' },
      lualine_y = { 'progress' },
      lualine_z = { 'location'  },
    }
    lualine.status()

from lualine.nvim.

bool3max avatar bool3max commented on May 21, 2024 1

It is less noticeable (though still apparent) using the default scroll speed (let g:smoothie_update_interval=10), but when using let g:smoothie_update_interval=5, a slower scroll speed, it becomes immediately apparent. The last few lines to-be-scrolled take a second to go by.

from lualine.nvim.

bool3max avatar bool3max commented on May 21, 2024 1

Yeah the less delay between updates the more lag there is, without lualine I can get a very smooth motion with it set to 5, with it not so much. I love the plugin, hope you get it resolved!

from lualine.nvim.

bool3max avatar bool3max commented on May 21, 2024 1

Yeah that works, it doesn't lag anymore!

from lualine.nvim.

hoob3rt avatar hoob3rt commented on May 21, 2024 1

Great! Thanks for pointing that out. I know why this is happening but I have a more universal fix in mind than just fixing the branch function.

Some functions like branch, fileformat should probably only run once per file, not on every update like this is happenig like now.
I will try to resolve this next friday. You can keep using lualine without the branch functionality for now or try creating a pr.

from lualine.nvim.

eric-hansen avatar eric-hansen commented on May 21, 2024 1

I'm not super familiar with the Lua API but why not make the calls async with vim.loop instead?

from lualine.nvim.

bool3max avatar bool3max commented on May 21, 2024 1

yeah, seems to be fixed, nice.

from lualine.nvim.

hoob3rt avatar hoob3rt commented on May 21, 2024

This does not happen on my system unless I set g:smoothie_update_interval=1, even on xterm.
Keep in my that vim-smoothie is really cpu heavy as shown below
screen
But no lag happens when lualine.nvim is not installed so this is definitely an issue, I will try to resolve this asap.

from lualine.nvim.

hoob3rt avatar hoob3rt commented on May 21, 2024

can you try setting up lualine this way?

require('lualine').sections = {
  lualine_a = { 'mode' },
  -- lualine_b = { 'branch' },
  lualine_c = { 'filename' },
  lualine_x = { 'encoding', 'fileformat', 'filetype' },
  lualine_y = { 'progress' },
  lualine_z = { 'location'  },
}

I think the branch function might be a problem

from lualine.nvim.

bool3max avatar bool3max commented on May 21, 2024

Using that I get this:

image

from lualine.nvim.

hoob3rt avatar hoob3rt commented on May 21, 2024

I'm not super familiar with the Lua API but why not make the calls async with vim.loop instead?

Yes function like branch have to be made async as well. Thanks for pointing vim.loop out, it looks like it could be an easy to implement solution.

from lualine.nvim.

hoob3rt avatar hoob3rt commented on May 21, 2024

could you confirm if f62c0d4 solves this issue?

from lualine.nvim.

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.