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:
parent
b104fea146
commit
1b9e252015
@ -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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user