Last active
May 2, 2025 23:47
-
-
Save mnuddindev/5280a00f0f8d45d64b3d479e37a9bc98 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pkg install golang | |
| pkg install neovim | |
| pkg install nodejs | |
| curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \ | |
| https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
| curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
| mkdir -p ~/.config/nvim | |
| wget -O ~/.config/nvim/init.vim https://gist.githubusercontent.com/inadislam/b0267ffc4660d6825fe661e6ed0eead1/raw/d3f8e8c2a79faf4607b1c82bdbd332231b20080d/init.vim | |
| set at the top of init.vim | |
| set rtp+=~/.vim | |
| set shell=/bin/bash | |
| nvim +PlugInstall | |
| nvim +CocConfig | |
| paste this | |
| { | |
| "languageserver": { | |
| "golang": { | |
| "command": "gopls", | |
| "rootPatterns": ["go.mod", ".vim/", ".git/", ".hg/"], | |
| "filetypes": ["go"] | |
| } | |
| } | |
| } | |
| :wq | |
| nvim +GoInstallBinaries | |
| :q | |
| nvim ~/.zshrc | |
| at the end of the file | |
| export GOROOT=$PREFIX/lib/go | |
| export GOPATH=~/www/go | |
| export GOBIN=$GOPATH/bin | |
| export PATH=$GOBIN:$GOPATH/bin:$GOROOT/bin:$PATH | |
| :wq | |
| lets check go env by using this command | |
| go env | |
| if all things ar great in that list you are ready to rock. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment