Skip to content

Commit

Permalink
Merge pull request #14 from calve/patch-1
Browse files Browse the repository at this point in the history
Document usage with emacs lsp-mode
  • Loading branch information
juliosueiras authored Jul 24, 2019
2 parents 1c9a8c7 + 0c4dc78 commit 4be8443
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 4be8443

Please sign in to comment.