Neovim 0.12 !!!!
Neovim 0.12 just dropped, with a bunch of features. We should consider what makes sense to add to kickstart.
Note: Replacing lazy.nvim with vim.pack is a bigger discussion than what is meant for this issue. This issue is meant for relatively small/uncontroversial changes. Also, there is already an issue open: #1630
Here are some initial things:
- The default mappings of
mini.aiclash with the newv_anandv_inmappings. ~~This is probably just a bug withmini.ai~~ (This is a known issue). - The
'autocomplete'option may be a good option to enable by default. I am not sure how it would interact with blink.cmp though. - Enabling
ui2might be a good thing to have commented out somewhere in the config. Or, maybe not š¤·āāļø something to think about.
Iām really happy with how Neovim 0.12 has turned nvim-lspconfig (0.10) and nvim-treesitter into mere configuration and parser downloaders, while also allowing me to drop lazy.nvim entirely. I heard that native APIs for blink.cmp-like functionality existed before but weren't mature enough to replace it. I'm hoping 0.12 will finally allow native APIs to replace blink.cmp as well.
The default mappings of mini.ai clash with the new v_an and v_in mappings. This is probably just a bug with mini.ai.
This seems to be known by mini.nvim and not classified as a bug.
I'm still not sure what do with because I agree with echasnovski that those are good mappings for mini.ai.
Also, I would guess that most kickstart users are already used to them (including me). Though we may need to rip the band aid anyway, so it may as well be now.
The 'autocomplete' option may be a good option to enable by default. I am not sure how it would interact with blink.cmp though.
This has already been possible using some autocmds, it is just simpler now. I think that the reasons to stick with blink.cmp from the previous discussion are still relevant, so I don't think we need to switch.
Enabling ui2 might be a good thing to have commented out somewhere in the config. Or, maybe not š¤·āāļø something to think about.
Is this stable enough for general use? The experimental warnings kinda make me think this is still not the time for kickstart to use it. I'm fine with waiting for 0.13 to let this stabilize a bit more (unless the consensus is that it is already extremely stable)
Also, I'm still combing through the release notes, so feel free to suggest more interesting new features š
Enabling ui2 might be a good thing to have commented out somewhere in the config. Or, maybe not š¤·āāļø something to think about.
Is this stable enough for general use? The experimental warnings kinda make me think this is still not the time for kickstart to use it. I'm fine with waiting for 0.13 to let this stabilize a bit more (unless the consensus is that it is already extremely stable)
No, it is not stable enough for general use as far as I know. I am suggesting adding a commented-out line that enables it, with an explanation about it. Something like:
-- UI2 is an experimental feature intended to replace the builtin message + cmdline presentation layer.
-- See `:help ui2`
-- It supports highlighting the cmdline as you type, and viewing the output of commands in a pager that can be interacted with like a (mostly) normal buffer.
-- To enable it, uncomment this line. It is disabled by default since it is experimental and may break.
--require('vim._core.ui2').enable({})
Since it is experimental, there is a possibility that it can break without warning, so even with the disclaimer, some people may experience breaking changes that are difficult to debug.
We don't need nvim-lspconfig plugin. https://github.com/neovim/neovim/pull/36925
@MariaSolOs's demo video
@rez1-dev - I haven't had time to watch the video yet, but if I understand it correctly, this replaces installing nvim-lspconfig with manually copying LSP server configurations from the nvim-lspconfig repo into your own configuration.
If I am correct, I don't think this would be a good idea for kickstart. While copying configuration from nvim-lspconfig into your own configuration is not very difficult, it does introduce some friction when trying to use a new LSP (it doesn't work "out of the box").
Edit: although, this would probably be a good thing to add as a comment
nvim-treesitter got archived today.
LSP is still not that easy to set up, imho, but it's significantly simpler than how it was before, so that cuts out mason and nvim-lspconfig in my book.
nvim-treesitter is still somewhat problematic to remove, but I'm in the process of doing so.
lazy is fully replaceable with the native vim pack, in the context of kickstarer of course.
blink.cmp can't be replaced with the native autocomplete, as of today, it still provides a lot of value on top of the native autocomplete.
LSP is still not that easy to set up, imho, but it's significantly simpler than how it was before, so that cuts out mason and nvim-lspconfig in my book.
Mason is used to install LSP servers, not to configure them. I don't think 0.12 affects whether Mason is needed. Removing nvim-lspconfig is still under discussion (https://github.com/nvim-lua/kickstart.nvim/issues/1971#issuecomment-4178747788)
Another feature we can add is support for codelens. Either by enable it default, or adding a key map to toggle it (like we do for inlay hints).
The default mappings of mini.ai clash with the new v_an and v_in mappings. This is probably just a bug with mini.ai (This is a known issue).
This has now been solved in 9b4fbc5
Another feature we can add is support for codelens. Either by enable it default, or adding a key map to toggle it (like we do for inlay hints).
If we do, I think it's worth adding in the explanation comment what it does (for some people it's a bit of an exotic word with no obvious idea what it is) and some examples of language servers that support it. Depending on the stack the user writes with, it's possible they don't have any server that supports it, enables it, then spends an hour trying to find out why it doesn't work (no, that's definitely not what happened to me, why are you looking at me like that).
Another feature we can add is support for codelens. Either by enable it default, or adding a key map to toggle it (like we do for inlay hints).
Adding a toggle keymap with an explanation would be good.
#2005 was merged, so we now require 0.12 š
I go over this issue again and think about implementing some of the stuff here. If you would like to help you can open PR with some of the suggestions (though I can't promise I will accept everything).
I was a happy camper with nvim .11.4 and then decided to update to .12.2 ... not a good idea I am now wondering if I should install the .11.4 version again, or just learn .12.2 and drop kickstart.nvim entirely Are there plans to "adapt" kickstart.nvim to the .12 neovim release?
@wu0lss4j - The newest version of kickstart.nvim should work with Neovim 0.12. I don't think there were any breaking changes in 0.12 that would make the older versions of kickstart not work. Maybe you should create a new issue and detail what exactly broke.
@oriori1703 I just tried to update to the latest version of kickstart and can only say that the switch to vim.pack was IMO a mistake at this point.
Not a single plugin I use documents how it's installed using vim.pack. This is super frustrating.
Instead of copy/pasting config snippet from the docs of the plugin, one needs to translate lazy config to pack and know what translate how. And what isn't even supported by pack (like cmd, event, ft, keys) and how to solve this.
How is this beginner friendly, something kickstart claims to be.
I mean, pack is like 5 min old, why rush into using this?
I'm aware that there's a lazy branch, but it's already 9 commits behind and wont get any updates.
@wu0lss4j - The newest version of kickstart.nvim should work with Neovim 0.12. I don't think there were any breaking changes in 0.12 that would make the older versions of kickstart not work. Maybe you should create a new issue and detail what exactly broke.
I should've, but the list was so extensive I figured maybe I just had to do a fresh install. Now I have 0.12 but no kickstartvim distro yet. Anyhow, thanks for your message.
Not a single plugin I use documents how it's installed using vim.pack. This is super frustrating.
Instead of copy/pasting config snippet from the docs of the plugin, one needs to translate lazy config to pack and know what translate how. And what isn't even supported by pack (like cmd, event, ft, keys) and how to solve this.
@Christoph-Raab read this migration guide. I went through your 7 custom-added plugins. Trust me, it can be done. And it's super easy.
Christoph-Raab read this migration guide. I went through your 7 custom-added plugins. Trust me, it can be done. And it's super easy.
Thanks, I read that guide and got stuck at
fields like cmd, event, ft, keys can not be translated directly
Yet the guide doesn't mention how to translate that. Nor does any other guide I found so far.
I get that nvim isnt jetbrains idea or vscode where everything is done for me. And I have learned a lot about the tooling those ide/editors are using behind the scenes.
Also I'm not against using pack in general, just maybe the maintainers could have waited until it's a bit wider used.
Now I have to understand what lazy does when I configure key, ft or cmd and than figure out how to translate that to pack. I have enough experience that I'm confident that I'll figure it out, given I find the time to investigate on that.
But expecting this from someone completely new to nvim (which is the main audience for this repo) seems a bit much.
Also @rez1-dev if you can point to where to find some resources about how to handle cmd, key and ft in pack, if appreciate that. Or do I no need that at all?