https://github.com/plentiform/go-ide
Neovim config for golang development
https://github.com/plentiform/go-ide
golang ide neovim
Last synced: 6 days ago
JSON representation
Neovim config for golang development
- Host: GitHub
- URL: https://github.com/plentiform/go-ide
- Owner: plentiform
- Created: 2019-07-10T16:52:37.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-11-03T19:20:45.000Z (over 4 years ago)
- Last Synced: 2025-04-02T20:40:54.680Z (12 days ago)
- Topics: golang, ide, neovim
- Language: Vim script
- Size: 9.51 MB
- Stars: 137
- Watchers: 3
- Forks: 15
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- my-awesome-github-stars - plentiform/go-ide - Neovim config for golang development (Vim Script)
README
go-ide
===
## Description
This project is a lightweight, [Neovim](https://neovim.io/) integrated development environment (IDE) for [Golang](https://golang.org/) development.
## Prerequisites
1. Install golang: https://golang.org/doc/install
2. Fix paths by adding the following to `~/.bashrc` (Ubuntu) or `~/.bash_profile` (Mac):
```
export GOPATH=$HOME/go
export PATH=$GOPATH/bin:/usr/local/go/bin:$PATH
```
(make sure to run `source ~/.bashrc` / `source ~/.bash_profile` or open a new terminal to apply changes)2. Install gocode: `go get -u github.com/stamblerre/gocode`
3. Install python support for neovim: `pip3 install pynvim`
4. Install neovim: https://github.com/neovim/neovim/wiki/Installing-Neovim
5. Install vim-plug: https://github.com/junegunn/vim-plug#installation
6. Install nerd-fonts: https://github.com/ryanoasis/nerd-fonts#font-installation## Installation
1. Make sure you meet the prerequisites above ^
2. Download the [config file](https://raw.githubusercontent.com/plentiform/go-ide/master/init.vim):
```
cd ~/Downloads/; wget https://raw.githubusercontent.com/plentiform/go-ide/master/init.vim
```
or
```
cd ~/Downloads/; curl -o init.vim https://raw.githubusercontent.com/plentiform/go-ide/master/init.vim
```
3. Make the configuration directory if it doesn't already exist: `mkdir -p ~/.config/nvim`
4. Move the downloaded file to the correct location: `mv ~/Downloads/init.vim ~/.config/nvim/.`
5. Edit the new configuration file: `nvim ~/.config/nvim/init.vim`
6. If the plugins didn't automatically install, press colon `:` then type `PlugInstall` and press Enter
7. Use vim-go to install binaries, press colon `:` then type `GoInstallBinaries` and press Enter## Features
- File browser: `nt`

- File search: Ctrl-`p`

- Text search: `/` then type your search terms (find terms Enter, next `n`, previous `N`, clear highlight Ctrl-`l`)

- Go to definition: `gd` (traverse back with Ctrl-`o`)

- Method and property completion (cycle forward: Tab, cycle backward Shift-Tab, select Enter)

- Snippets / shortcuts (next input Ctrl-`j`, previous input Ctrl-`k`)

- Debugger

- Auto imports and tab formatting
