Neovim configuration for Golang Development



Neovim configuration for Golang Development

Neovim configuration for Golang Development

Neovim and vim are good alternatives in cases you don’t want to use a full blown IDE like Goland or Visual Studio Code, specially in cases where you program in multiple languages and learning multiple IDEs could be too much to learn. Here’s the configuration I have when working on Go/Golang projects using Neovim, this includes options for compiling programs, running tests, as well as code completion using the “vim-plug” Plugin Manager with the following plugins:

— Default

* vim-airline: https://github.com/vim-airline/vim-airline
* ctrlp: https://github.com/ctrlpvim/ctrlp.vim
* vim-devicons and nerd-fonts: https://github.com/ryanoasis/vim-devicons + https://github.com/ryanoasis/nerd-fonts/
* vim-commentary: https://github.com/tpope/vim-commentary
* vim-gitgutter: https://github.com/airblade/vim-gitgutter
* tabline: https://github.com/mkitt/tabline.vim

— Go

* vim-go: https://github.com/fatih/vim-go
* coc: https://github.com/neoclide/coc.nvim
* UltiSnips: https://github.com/sirver/UltiSnips

— Theme

* papercolor-theme: https://github.com/NLKNguyen/papercolor-theme

— Actual configuration

* init.vim: https://gist.github.com/MarioCarrion/836dc17e15096b6c2414ce9b0acd93a4
* go.vim: https://gist.github.com/MarioCarrion/99f6a6110796cff5df118822472a0bc9

— Recommended books

* Mastering Vim Quickly: From WTF to OMG in no time: https://amzn.to/3rEjIlz (Affiliate link)
* Modern Vim: Craft Your Development Environment with Vim 8 and Neovim: https://amzn.to/3w8v8S9
* Practical Vim: Edit Text at the Speed of Thought: https://amzn.to/3dkN4jN

* Playlist “Go/Golang Tools and Packages”: https://www.youtube.com/playlist?list=PL7yAAGMOat_HEEOvH99agDs_5g51A0Ls3
* Playlist “Building Microservices in Go/Golang”: https://www.youtube.com/playlist?list=PL7yAAGMOat_Fn8sAXIk0WyBfK_sT1pohu

00:00 – Start
00:25 – iTerm2 + FiraCode Font
02:00 – Default configuration
02:27 – Relative Number
03:38 – Ruler + ColorColumn
03:54 – netrw
05:11 – Plugins using Plug
05:46 – vim-airlinee, ctrlp, vim-devicons, vim-commentary, vim-gitgutter and tabline
10:04 – vim-go, coc and ultisnips
14:17 – papercolor-theme
14:46 – Parting words

Who am I:

HelloπŸ‘‹πŸΌ! I’m Mario, a Hands-on Software Architect and Lead Backend Engineer with more than 16 years of professional experience building all kinds of software including on-premise Industrial Automation Systems, Linux Accessibility Desktop and Browser Components as well as Distributed Advertising Microservices.

Every week I will share with you different topics I’ve learned while working for small startups and large companies including the processes I’ve followed over the years for successfully delivering complex enterprise systems from start to end.

Subscribe if you like Software Development, Software Architecture and Systems Design!

Keep it up. Don’t give up!

#golang #neovim #programming

— Our affiliate links below

Shop our favorite products β†’ https://www.amazon.com/shop/rubycarrion
Vlogging setup β†’ https://rubycarrion.com/camerasforvlogging/
Get a 30 day FREE trial of Epidemic Sound β†’ https://www.epidemicsound.com/referral/szx441/
Try Amazon Prime 30-Day FREE trial β†’ https://amzn.to/3s0el1R
I love getting Cash Back and think you will too! Join for free and get $20 when you spend $20 β†’ https://www.rakuten.com/r/RUBYRA132?eeid=28187
Sign up to start using vidIQ to grow your YouTube channel for FREE β†’ https://vidiq.com/rubycarrion

— Our Vlog Channel

https://www.youtube.com/c/RubyCarrion/videos

Comments are closed.