Disclaimer: This post includes Amazon affiliate links. If you click on one of them and you make a purchase I’ll earn a commission. Please notice your final price is not affected at all by using those links.
Last night I tweeted a mission I wanted to accomplish:
My goal tonight is to migrate my init.vim to init.lua. Wish me luck.🙃
— Mario Carrion (@mariocarrion) March 25, 2022
What inspired me to do this was to being able to use lspkind-nvim, which really looked amazing, there’s something nice when you’re able to visually determine what the autocompletion options mean.
In practice this post is a followup of my previous posts:
In the end the following gist, covers the configuration I was able to make it work:
With a few important things to call out:
- To install packer use:
git clone --depth 1 https://github.com/wbthomason/packer.nvim ~/.config/nvim/pack/packer/start/packer.nvim
, I got this tip from From init.vim to init.lua - a crash course - I had to use tami5/lspsaga.nvim instead of glepnir/lspsaga.nvim because there seems to be an issue with the Code Action feature.
In the end it really looks amazing:
Mission accomplished. 🙃 Gist in case anyone is interested https://t.co/XaRVcDoULp #golang pic.twitter.com/VzvTg4rY7T
— Mario Carrion (@mariocarrion) March 26, 2022