Skip to content

Commit e676cd6

Browse files
sbaildonmvdan
authored andcommitted
README: neovim install instructions
1 parent ec957d2 commit e676cd6

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,20 @@ simply configure `gopls` to use `gofumpt`:
504504
call govim#config#Set("Gofumpt", 1)
505505
```
506506

507+
#### Neovim
508+
509+
When using [`lspconfig`](https://github.com/neovim/nvim-lspconfig), pass the `gofumpt` setting to `gopls`:
510+
511+
```lua
512+
require('lspconfig').gopls.setup({
513+
settings = {
514+
gopls = {
515+
gofumpt = true
516+
}
517+
}
518+
})
519+
```
520+
507521
#### Emacs
508522

509523
For [lsp-mode](https://emacs-lsp.github.io/lsp-mode/) users:

0 commit comments

Comments
 (0)