mirror of
https://github.com/golang/go.git
synced 2025-05-05 23:53:05 +00:00
gopls does not run goimports
upon textDocument/formatting
method. Please see https://github.com/autozimu/LanguageClient-neovim/issues/854
parent
336e4147ad
commit
e7e63d1c26
2
gopls.md
2
gopls.md
@ -111,7 +111,7 @@ Use [LanguageClient-neovim](https://github.com/autozimu/LanguageClient-neovim),
|
|||||||
let g:LanguageClient_serverCommands = {
|
let g:LanguageClient_serverCommands = {
|
||||||
\ 'go': ['gopls']
|
\ 'go': ['gopls']
|
||||||
\ }
|
\ }
|
||||||
" Run gofmt and goimports on save
|
" Run gofmt on save
|
||||||
autocmd BufWritePre *.go :call LanguageClient#textDocument_formatting_sync()
|
autocmd BufWritePre *.go :call LanguageClient#textDocument_formatting_sync()
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user