Zulip Chat Archive

Stream: new members

Topic: A small issue every time I open nvim


Michael Novak (Sep 27 2025 at 09:44):

I've been using nvim for learning lean for the past few weeks and everything works pretty well overall, but about a week a ago I accidentally hit a few keys in the keyboard, and ever since then, every time I open nvim to work on a lean file, I get this message:

The `require('lspconfig')` "framework" is deprecated, use vim.lsp.config (see :help lspcon
fig-nvim-0.11) instead.
Feature will be removed in nvim-lspconfig v3.0.0
Press ENTER or type command to continue

I just press ENTER and then I can use nvim without any problem, but it's still a bit annoying to get this message every time, so I would like to solve this problem. If you have any suggestion how to solve it, I would highly appreciate it.

Rider Kirkpatrick (Sep 28 2025 at 04:43):

Have you followed the advice in the warning to use vim.lsp.config instead of require()? Based on the warning it seems like more of a neovim lsp configuration issue rather than a lean issue. I think the first step would just be to do what the warning says, right?

Michael Novak (Sep 28 2025 at 05:42):

I just don't know how to do that exactly. How exactly, can I use vim.lsp.config instead of require()? What do I need to do? And what does it mean exactly, why do you think I get this message? Sorry if I'm asking too many questions and thank you for the response.

Julian Berman (Sep 28 2025 at 15:55):

Sorry, I thought I responded to this. This is https://github.com/Julian/lean.nvim/pull/428 which is unfortunately still not mergeable because the upstream change is not a drop-in replacement.

Julian Berman (Sep 28 2025 at 15:58):

My best immediate advice just to make things less annoying would be to install and use https://github.com/rcarriga/nvim-notify -- neovim's out of the box experience for warnings is terrible, which you've noticed as it interrupting your workflow and asking you to hit a key -- at least if you use notify then it will be some "popup" like thing which automatically disappears after a few seconds.

Julian Berman (Sep 28 2025 at 15:59):

I've spend quite a few hours today and yesterday trying to decide what the righter fix is -- and help is certainly welcome, that PR does the change, but all the test suite then fails for nuanced reasons having to do with when precisely LSP clients are started with the new interface relative to the old one. So it will take me a bit longer to decide what to do about this, especially given I am entertaining guests and don't have a ton of time to fix a silly upstream change.

Julian Berman (Sep 28 2025 at 16:00):

So -- another way if you're annoyed is "downgrade lspconfig and the error will go away" as well.

Michael Novak (Sep 28 2025 at 16:37):

Thank you very much for the response. First of all, I'm a bit glad that this is a known issue, because I thought that I did something wrong. Secondly, to be honest it's not that annoying for me, I don't mind getting this message every time I open nvim for a while until the bag is fixed. Is it fine to leave as it is for now? Of course I'm regularly updating the plugins with :Lazy update as you showed me a few weeks s ago (thanks again for that, it's very conviniant).

Julian Berman (Sep 28 2025 at 16:45):

Yes if it's only mildly annoying you just leave it, I hope to have it fixed soon.


Last updated: Dec 20 2025 at 21:32 UTC