Skip to content

Commit

Permalink
add description for nvim builtin lsp (#659)
Browse files Browse the repository at this point in the history
  • Loading branch information
cappyzawa authored Oct 1, 2021
1 parent 8840e7b commit f8d17f2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,20 @@ let g:LanguageClient_serverCommands = {
\ }
```

### Neovim v0.5.0+

- Install the [nvim-lspconfig plugin](https://github.com/neovim/nvim-lspconfig)
- Add the following to your `.vimrc`:

```vim
lua <<EOF
require'lspconfig'.terraformls.setup{}
EOF
autocmd BufWritePre *.tf lua vim.lsp.buf.formatting()
```

Make sure to read through to [CONFIG.md#terraformls](https://github.com/neovim/nvim-lspconfig/blob/master/CONFIG.md#terraformls) if you need more detailed settings.

## VS Code

- Install [Terraform VS Code Extension](https://marketplace.visualstudio.com/items?itemName=hashicorp.terraform) `>=2.0.0`
Expand Down

0 comments on commit f8d17f2

Please sign in to comment.