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

Bug: Tmux has problems rendering symbols/icons from the LSP (Solved) #1321

Open
2 tasks done
envico801 opened this issue Nov 2, 2024 · 0 comments
Open
2 tasks done
Labels
bug Something isn't working

Comments

@envico801
Copy link

Self Checks

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

How to reproduce the problem

I have already solved this problem, I am just leaving this message for future generations. This problem is probably duplicated so I apologize in advance.

Steps:

  1. Install some nvim LSP of your choice, for example in my case it is lua.
  2. Open some file in which a problem is detected (according to the LSP), for example an incomplete syntax, or some warning about something ⚠

The problem is caused by using “weird” symbols/icons in the diagnostics section

For example:

    lualine_x = {
      {
        get_active_lsp,
        icon = " LSP:",
      },
      {
        "diagnostics",
        sources = { "nvim_diagnostic" },
        -- This line is the one that causes problems:
        symbols = { error = "🆇 ", warn = "⚠️ ", info = "ℹ️ ", hint = "" },
      },
    },

Solution:

        -- Use other types of icons, e.g.
        symbols = { error = "", warn = "", info = "", hint = "" }

Expected behaviour

Basically that a color does not appear when I want to use “/” or “:”.

good example lualine 1
good example typing 2

Actual behaviour

When you try to use the “/” or “:” keys inside nvim it will cause that extra little square to be generated in the command line and it will stay there until you change the file. It only appears once the LSP is fully loaded, it's like lualine doesn't update correctly when the LSP adds some diagnostic icon to the status line.

bad example lualine 1
bad example typing 2

Minimal config to reproduce the issue

Additional information

Maybe I am the only one who did not read the documentation.

monkey

@envico801 envico801 added the bug Something isn't working label Nov 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant