Comments (12)
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.
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.
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.
Yeah that works, it doesn't lag anymore!
from lualine.nvim.
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.
I'm not super familiar with the Lua API but why not make the calls async with vim.loop instead?
from lualine.nvim.
yeah, seems to be fixed, nice.
from lualine.nvim.
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
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.
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.
Using that I get this:
from lualine.nvim.
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.
could you confirm if f62c0d4 solves this issue?
from lualine.nvim.
Related Issues (20)
- Bug: when running mosh with neovim and lualine, terminal is broken
- Bug: Two status lines appear when using nvim -p[x] and switching tabs HOT 8
- E539: Illegal character <,> HOT 3
- Feat: Hide the lualine background color when fzf-lua/fzf is up and running
- Bug: (suggestion): remove default filename in command bar when there is one displayed in lualine HOT 1
- Feat: Add harpoon-lualine to Wiki page HOT 1
- Bug: Component conditions not properly evaluation at launch
- Feat: Middle custom options HOT 5
- Bug: User runtime path doesn't have priority on Windows
- Feat: Show tab number by default unless the tab is renamed HOT 1
- Feat: More flexible way to disable lualine or enable extensions
- Bug: flickering / blinking when `globalstatus = true`
- docs: typo on wiki HOT 1
- Bug: Icons show white separator HOT 1
- Bug: on_click option not working in components 'buffers' and 'tabs'
- Feat: Ability to use extensions in winbars and tabline
- Question how to not override DAP UI control buttons?
- Bug: Invalid window ID HOT 9
- Bug: evil_lualine little padding...
- Bug: fugitive extension sets statusline but not tabline
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 lualine.nvim.