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: Invalid window ID HOT 9
- Bug: evil_lualine little padding...
- Bug: fugitive extension sets statusline but not tabline
- Bug: globalstatus attribute display error
- Bug: Git diff doesn't work if file name contains spaces
- Feat: Optimize counting of diagnostics with new `vim.diagnostic.count()` (nvim 0.10+)
- Bug: quickfix extension crashes on %
- Bug: Lualine configurations are not applied HOT 2
- Bug: Hitting <C-l> does not immediately clear results from searchcount component
- Bug: q! is very slowly
- Bug: fugitive file is same as normal file if path=0
- Bug: Filetype icon for terminal acting weird HOT 7
- Feat: branch to show string instead of disabling HOT 2
- Feat: statusline showing a straight line HOT 3
- Bug: color abnormal after source init.vim file HOT 2
- Bug: Extensions are not working
- Feat:Add terminal mode HOT 2
- Bug: Powerline symbols not rendering properly when using an increased line height in windowsTerminalPreview
- Feat: Allow overriding color of the tabline background
- Bug: tab label is blank on oil
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.