this post was submitted on 13 Jun 2023
7 points (100.0% liked)

Go programming language discussion

1280 readers
1 users here now

founded 5 years ago
MODERATORS
 

Anybody has any spicy neovim configs to share for golang development.

I'm just missing GoFmt and GoImports to run on save.

Thanks!

you are viewing a single comment's thread
view the rest of the comments
[–] Michohl 1 points 1 year ago

My neovim is more tailored for Go development.

https://github.com/michohl/dotfiles/tree/main/.config/nvim

The important bits are I use lsp-zero for my LSP (probably going to switch to native lsp because this causes segfaults for me sporadically) and I use nvim-dap to get a proper debugger experience.

I used to consider vs code a must for real dev work but this config has everything I considered important feature wise.

The only "home brewed" part is I wrote a lua plugin to look for a any env file specifications in .vscode/launch.json and load that file so the variables are available to the debugger which can also leverage these vs code files.