Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Artifacts in LazyVim's lualine #243

Open
gnakic opened this issue Jun 14, 2024 · 4 comments
Open

Artifacts in LazyVim's lualine #243

gnakic opened this issue Jun 14, 2024 · 4 comments

Comments

@gnakic
Copy link

gnakic commented Jun 14, 2024

As seen in the screenshot, the breadcrumbs section of lualine has black boxes between symbols. Does not occur in the default LazyVim theme or gruvbox material for example.
kanagawa-lualine

@sergiotales1
Copy link

I'm with this same problem, tried to change the lualine theme prop but no changes, did you find any solution ?
image

@gnakic
Copy link
Author

gnakic commented Aug 17, 2024

@sergiotales1 unfortunately, no. Seems really like a theme related issue, because it's gone if I change it to another theme, such as gruvbox material

@sergiotales1
Copy link

I have found one way to solve this, apparently it's a Lazy vim lualine setup thing, the trouble.statusline usually shows the function the cursor are in and show some icons, but something is bugged with this so the icons are not shown at all, if you comment these lines of code into your lualine lazyvim config, the artifacts will be gone

Create lualine.lua into your lua>plugins folder and install the plugin like lazy vim but with these lines commented

-- do not add trouble symbols if aerial is enabled
-- And allow it to be overriden for some buffer types (see autocmds)
-- if vim.g.trouble_lualine and LazyVim.has("trouble.nvim") then
--   local trouble = require("trouble")
--   local symbols = trouble.statusline({
--     mode = "symbols",
--     groups = {},
--     title = false,
--     filter = { range = true },
--     format = "{kind_icon}{symbol.name:Normal}",
--     hl_group = "lualine_c_normal",
--   })
--   table.insert(opts.sections.lualine_c, {
--     symbols and symbols.get,
--     cond = function()
--       return vim.b.trouble_lualine ~= false and symbols.has()
--     end,
--   })
-- end

You can check my plugins config here

@stargazer3240
Copy link

You can set vim.g.trouble_lualine = false in lua/config/options.lua to do the same trick that @sergiotales1, as mentioned here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants