-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
module 'lsp-progress' not found #131
Comments
hi @alextrastero , try this? return {
'nvim-lualine/lualine.nvim',
event = { "VimEnter" },
dependencies = {
{
'linrongbin16/lsp-progress.nvim',
config = function() require ('lsp-progress').setup() end,
}
},
opts = {
sections = {
lualine_c = {
require('lsp-progress').progress
},
},
}
} |
Aha! I see, I was expecting the setup to be called automatically for some reason, thanks! |
Strange it's still happening...
My full config return {
'nvim-lualine/lualine.nvim',
event = { "VimEnter" },
dependencies = {
'linrongbin16/lsp-progress.nvim',
config = function() require('lsp-progress').setup() end
},
opts = {
options = {
component_separators = { left = '|', right = '|' },
globalstatus = true,
},
sections = {
lualine_a = {
{ 'mode', fmt = function(str) return str:sub(1, 1) end }
},
lualine_b = {
{ 'branch', icons_enabled = false }
},
lualine_c = {
require('lsp-progress').progress,
},
},
tabline = {
lualine_a = {
'buffers',
},
},
}
} |
hi @alextrastero , You are right, I tried this minimal init.lua: /~https://github.com/linrongbin16/lsp-progress.nvim/pull/133/files#diff-7bb74865bd40076b8da8648f3a65195d7d4728c862077e033d111b4bdf47c790. And it reproduce the same error as yours. That's strange! I found that, using this minimal init.lua, I even don't have the Can you check if your lazy.nvim is working? Update: I found the reason, the error is thrown from here:
It looks like we cannot directly set it here: require("lualine").setup({
sections = {
lualine_c = {
require("lsp-progress").progress,
},
}
}) This is actually wrong. Can you try to wrap it with a For example: lualine_c = {
function()
return require("lsp-progress").progress()
end,
},
|
Thanks to your report! actually I remember some one has faced this issue long time ago, but at that time I didn't notice it. |
Yup, wrapping in a function worked for me, thanks! |
I also submit #133 to fix the readme installation section. |
Hi, plugin is installed and configured via lazy.nvim, when I start I get the following:
minimal setup
Thanks in advance!
The text was updated successfully, but these errors were encountered: