Neovim for Hugo development (to replace vscode)

Neovim Hugo Linux Development ajboni 4/24/2022

This is my attempt to set up a confortable environment for hugo to replace VSCode. The starting point in AstroNvim

Syntax Highlighting (Go Template)

This post has some great info about vim-go plugin and a script to detect if file is a hugo template.

I just needed to make some little tweaks and convert it to lua. But the I found this!

https://github.com/phelipetls/vim-hugo

Snippets

Adding snippets is really easy in AstroNvim: just need to setup the snippets directory, add the snippets file go the folder and set it up in package.json

For this case I will add the snippets from the theNewDynamic language-hugo-vscode repo.

Result

Hugo Vim

https://github.com/nvim-treesitter/nvim-treesitter-textobjects https://github.com/nathanaelkane/vim-indent-guides