I gave it a go last night and it is way trickier then I expected. Simple things like setting options are not very convenient at the moment. I also tried to get packer.nvim running but the README was not very helpful.
Looks like I will be sticking with init.vim for some time.
What trouble do you have with it? I found it very straightforward.
The first thing is obviously the lua syntax which is not a shock by any means. Just adds some learning curve which I don’t mind at all.
My knowledge of vim configuration is limited so the explanation may be a bit vague. But in vimscript you can do something like set expandtab, but in lua you have to set in one of
vim.{o,bo,wo}
which is a bit confusing at the beginning.The last thing is that I cannot for the life for me figure out how to get packer.nvim to work. I tried looking at some examples but they split their config between several files and since I am not very good at programming, let alone lua, I get very confused by this. I slogged through the readme for the project but couldn’t understand much of it either.
I’ve really been looking forward to porting mine over and cleaning up the absolute monstrosity while I do it. However as my knowledge of vimscript is very limited to begin with, I thought I’d wait for the stable release and possible migration guides. In the meantime I’m just getting used to the syntax peculiarities of Lua.
Feel free to link any resources and guides here, I’d be interested in reading them.
I have got mine to work. Here is what it looks like right now: https://git.ksynwa.xyz/dotty2hotty/tree/dotfiles/nvim.lua
Neat, thanks for sharing! Think I’m gonna just straight up steal a bunch of this after I figure out how it works.
Refer to this https://oroques.dev/notes/neovim-init/
I copied the variables and functions from this and the guy explains nicely why he did what he did. In fact, you could ignore my config and read that post but my config is very barebones so you might find some value in it, especially when it comes to getting packer.nvim to run.
Also I updated the link to the git repo in the other comment. Had entered the wrong one first.
This repo has some useful links: