Skip to content

Commit

Permalink
README: neovim install instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
sbaildon authored and mvdan committed Feb 22, 2022
1 parent ec957d2 commit e676cd6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Expand Up @@ -504,6 +504,20 @@ simply configure `gopls` to use `gofumpt`:
call govim#config#Set("Gofumpt", 1)
```

#### Neovim

When using [`lspconfig`](https://github.com/neovim/nvim-lspconfig), pass the `gofumpt` setting to `gopls`:

```lua
require('lspconfig').gopls.setup({
settings = {
gopls = {
gofumpt = true
}
}
})
```

#### Emacs

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

0 comments on commit e676cd6

Please sign in to comment.