Migrate to nix2vim? #9
Replies: 3 comments 5 replies
-
Hey! First and foremost, thank you for your interest. Glad to know I could be of any help to anyone with this project. I am aware there are a bunch of "neovim wrapper" kind of projects, nix2vim being one of them. Which is one of the reasons why this project sparked into existence: none of those quite did what I wanted them to. Taking another look at nix2vim after some time, I am not quite sure what exactly it would contribute to the project. Right now, this flake implements at least a decent way to add everything into a neovim configuration, so not entirely sure if I want to complicate even further, while breaking backwards compatibility with Lua - what everyone uses to configure their neovim before they take a dive into NixOS. But of course, I am always open to new ways on how to improve this project, and will be on the lookout as nix2vim matures. In the meantime, if you would like to demonstrate a sample implementation of your project into this flake, I would be happy to review it! And of course, answer your further questions as well. |
Beta Was this translation helpful? Give feedback.
-
What nix2vim does is it dynamically generates Lua from nix code, its a low-level abstraction and basically removes a need for modules as such: https://github.com/NotAShelf/neovim-flake/blob/main/modules/basic/default.nix. Instead of defining every possible option in vim and keeping everything up to date, you just have a dynamic generation of lua where users can define whatever they feel like using APIs Dynamic lua2nix parser test: https://github.com/gytis-ivaskevicius/nix2vim/blob/master/checks/default.nix API's example: https://github.com/gytis-ivaskevicius/nix2vim/blob/master/modules/essentials.nix
and of course, there are other API's. nix2vim does not add first-class support for plugins, and this is where this flake comes in :))) I would absolutely love to see this repository as a higher degree abstraction that adds first-class support for plugins like tree-sitter/which-key/lsp/etc |
Beta Was this translation helpful? Give feedback.
-
I've created #17 to track the status of a possible integration. It's not in my to-do list at the moment but I'll try to give it a try when I have the time. |
Beta Was this translation helpful? Give feedback.
-
Hi, I came around to your project and I gotta say - I love the amount of work you have put into this project, will definitely steal a few things :)
One of the things I'd like to see is migration to https://github.com/gytis-ivaskevicius/nix2vim/, It is a non-opinionated neovim wrapper that defines a simple API to define lua options. I think it would be great if this project was a higher degree of abstraction over nix2vim
Beta Was this translation helpful? Give feedback.
All reactions