This layer provides support for the Go language with the following packages:
Add the +lang/go
layer in your configuration file,
function! Layers()
" ...
Layer '+lang/go'
" ...
endfunction
Run :GoInstallBinaries
to install the binaries needed for vim-go
.
You can configure the indentation by setting g:sp_go_indentation
in your user-init block (i.e. before loading the plugin). By default it is set to 4
.
This layer sets up the gopls
language server for usage with coc.nvim.
Key Binding | Description |
---|
|