Skip to content

Commit

Permalink
Document usage with emacs lsp-mode
Browse files Browse the repository at this point in the history
  • Loading branch information
calve authored Jul 24, 2019
1 parent 1c9a8c7 commit 0c4dc78
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,17 @@ This is LSP(Language Server Protocol) for Terraform

### Emacs

- Should work with emacs-lsp(need confirmation)
- Work with [emacs-lsp/lsp-mode](https://github.com/emacs-lsp/lsp-mode) while still a little buggy
```lisp
(add-to-list 'lsp-language-id-configuration '(terraform-mode . "terraform"))
(lsp-register-client
(make-lsp-client :new-connection (lsp-stdio-connection '("/path/to/terraform-lsp/terraform-lsp" "-enable-log-file"))
:major-modes '(terraform-mode)
:server-id 'terraform-ls))
(add-hook 'terraform-mode-hook #'lsp)
```

### Others

Expand Down

0 comments on commit 0c4dc78

Please sign in to comment.