File tree 1 file changed +4
-6
lines changed
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -499,9 +499,7 @@ To avoid unnecessary runs, you should disable all checkboxes in the *Advanced* s
499
499
500
500
#### Vim-go
501
501
502
- Ensure you are at least running version
503
- [ v1.24] ( https://github.com/fatih/vim-go/blob/master/CHANGELOG.md#v124---september-15-2020 ) ,
504
- and set up ` gopls ` for formatting code with ` gofumpt ` :
502
+ To configure ` gopls ` to use ` gofumpt ` :
505
503
506
504
``` vim
507
505
let g:go_fmt_command="gopls"
@@ -510,8 +508,7 @@ let g:go_gopls_gofumpt=1
510
508
511
509
#### Govim
512
510
513
- With a [ new enough version of govim] ( https://github.com/govim/govim/pull/1005 ) ,
514
- simply configure ` gopls ` to use ` gofumpt ` :
511
+ To configure ` gopls ` to use ` gofumpt ` :
515
512
516
513
``` vim
517
514
call govim#config#Set("Gofumpt", 1)
@@ -533,13 +530,14 @@ require('lspconfig').gopls.setup({
533
530
534
531
#### Emacs
535
532
536
- For [ lsp-mode] ( https://emacs-lsp.github.io/lsp-mode/ ) users:
533
+ For [ lsp-mode] ( https://emacs-lsp.github.io/lsp-mode/ ) users on version 8.0.0 or higher :
537
534
538
535
``` elisp
539
536
(setq lsp-go-use-gofumpt t)
540
537
```
541
538
542
539
For users of ` lsp-mode ` before ` 8.0.0 ` :
540
+
543
541
``` elisp
544
542
(lsp-register-custom-settings
545
543
'(("gopls.gofumpt" t)))
You can’t perform that action at this time.
0 commit comments