Skip to content

Commit

Permalink
use gopls in rename command for go (#3412)
Browse files Browse the repository at this point in the history
Vim-go uses the deprecated gorename command that doesn't support Go modules. The latest release go gopls support renaming and is the new way forward.

See: 
* golang/go#27571
* fatih/vim-go#2366
  • Loading branch information
pjvds committed Mar 23, 2020
1 parent b104fea commit 1b9e252
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions autoload/SpaceVim/layers/lang/go.vim
Expand Up @@ -60,6 +60,7 @@ function! SpaceVim#layers#lang#go#config() abort
let g:syntastic_mode_map = { 'mode': 'active', 'passive_filetypes': ['go'] }
let g:neomake_go_gometalinter_args = ['--disable-all']
let g:go_snippet_engine = 'neosnippet'
let g:go_rename_command = 'gopls'

if SpaceVim#layers#lsp#check_filetype('go')
call SpaceVim#mapping#gd#add('go',
Expand Down

0 comments on commit 1b9e252

Please sign in to comment.