Closed igillis-clara closed 7 months ago
hi @igillis-clara ,
the setup looks good to me, can you share the source code lsp.lua: 143
that throws the error?
It's just this line
require('lsp-progress').setup()
Very strange. My understanding is that require
returns true
when the module you call it on doesn't return anything, but I'm not sure how that's possible.
hi @igillis ,
can you share your nvim config's github repo? (if you use it to maintain your nvim config) I could take a look at it.
Good idea, it's here: https://github.com/igillis/neovim
I just pushed the commented out attempt I made at incorporating lsp-progress
hi @igillis ,
the config looks good, but I found lualine doesn't depend on lsp-progress, check: https://github.com/igillis/neovim/blob/ab84d67cfeb26c4c95655414555ec497cde0ad23/lua/plugins/lualine.lua#L4
maybe add lsp-progress as lualine dependency, and try again.
hi @igillis ,
This issue could be the same as #131 .
You can try setup lualine/lsp-progress with lazy like this:
lualine_c = {
function()
return require("lsp-progress").progress()
end,
},
Note: use function() ... end
to wrap the progress
API, this can help avoid the lazy dependency issue.
Yes that fixed the error! Not showing anything in lualine just yet but that's presumably a different issue.
Thanks -- feel free to close this out.
Before even incorportaing lsp-progress into lualine, I'm getting an error just configuring it with Lazy:
gives