Step-2: cd into the project folder & open the main.rs with the minimal init:
cd ~/.neovide
nvim -u minimal_init.lua src/main.rs
The minimal_init.lua is attached in the end of this issue.
Note, the minimal_init.lua contains multiple plugins:
nvim-lspconfig, mason.nvim: they're for installing the rust_analyzer lsp.
web-nvim-devicons.nvim, lsp-progress.nvim: it's for providing lsp progress status messages as a lualine component.
lualine.nvim: this plugin itself.
When you're using this minimal_init.lua, the first time you won't re-produce the issue, that's because lazy.nvim need to install plugins, and mason need to install rust_analyzer, wait for all the dependencies installed successfully, then re-open the file src/main.rs in the second time.
lualine.nvim/lua/lualine/utils/nvim_opts.lua:77: E539: Illegal character <d>
Sometimes it will also report for <+>, <i>.
To help debugging, I add debug log in the lsp-progress.nvim/lua/lsp-progress.lua:
local function progress(option)
local content = ''
...
logger.debug( -- add log in this line
"|lsp-progress.progress| returned content: %s",
vim.inspect(content)
)
return content
end
return {
setup = setup,
progress = progress,
}
Self Checks
How to reproduce the problem
Step-0: prepare the environment
install the Sauce Code Pro nerd font and configure it in wezterm.
This is because usually we're using patched fonts with icons, and the nvim-web-devicons plugin.
Step-1: download the neovide code base (a rust project):
Step-2: cd into the project folder & open the
main.rs
with the minimal init:Note, the
minimal_init.lua
contains multiple plugins:rust_analyzer
lsp.When you're using this
minimal_init.lua
, the first time you won't re-produce the issue, that's because lazy.nvim need to install plugins, and mason need to installrust_analyzer
, wait for all the dependencies installed successfully, then re-open the filesrc/main.rs
in the second time.Expected behaviour
Correctly shows the lsp progress status messages.
Actual behaviour
It shows:
https://github.com/nvim-lualine/lualine.nvim/assets/6496887/508612a9-211a-408d-8b99-2b7df7c737b6
The error is:
Sometimes it will also report for
<+>
,<i>
.To help debugging, I add debug log in the
lsp-progress.nvim/lua/lsp-progress.lua
:Here's the log file:
lsp-progress.nvim.log
I guess it's relate to the
%
escaping when formatting lua string.Also see issue: https://github.com/linrongbin16/lsp-progress.nvim/pull/95.
Minimal config to reproduce the issue
Additional information