1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-04-15 08:09:11 +08:00

use gopls in rename command for go (#3412)

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: 
* https://github.com/golang/go/issues/27571
* https://github.com/fatih/vim-go/issues/2366
This commit is contained in:
Pieter Joost van de Sande 2020-03-23 01:16:28 +01:00 committed by GitHub
parent b104fea146
commit 1b9e252015
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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',