Skip to content

Bug: constant background cpu usage #1487

@ces42

Description

@ces42

Self Checks

  • I'm using the latest lualine.
  • I didn't find the issue in existing issues or PRs.

Expected behaviour

Nvim cpu usage should be near zero, especially when not using the editor.

Actual behaviour

when lualine is loaded, nvim cpu usage is always 1-2% (on an intel Ultra 9 185H). The issue still persists if I strip all component from lualine (see config file).

Minimal config to reproduce the issue

local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
-- if not vim.loop.fs_stat(lazypath) then
if not vim.uv.fs_stat(lazypath) then
    vim.fn.system({
        "git",
        "clone",
        "--filter=blob:none",
        "https://github.com/folke/lazy.nvim.git",
        "--branch=stable", -- latest stable release
        lazypath,
    })
end
vim.opt.rtp:prepend(lazypath)


require("lazy").setup({
    spec = { 'nvim-lualine/lualine.nvim',
        -- ~/.config/nvim/lua/lualine_config.lua
        -- event = 'UIEnter',
        config = function()
            require'lualine'.setup{
                sections = {
                    lualine_a = {},
                    lualine_b = {},
                    lualine_c = {},
                    lualine_x = {},
                    lualine_y = {},
                    lualine_z = {},
                }
            }
        end,
    }
}
)

Additional information

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions