Skip to content

Commit

Permalink
Merge branch 'master' of github.com:juliosueiras/terraform-lsp
Browse files Browse the repository at this point in the history
  • Loading branch information
juliosueiras committed Sep 20, 2020
2 parents 2e556c2 + 4d5f533 commit 883f5c1
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@ name: Test
on:
pull_request:
push:
issue_comment:
types: [created, edited]
jobs:
test:
if: contains('pull_request|push', github.event_name) || github.event.comment.body == 'rebuild'
strategy:
matrix:
platform: [ubuntu-latest, macos-latest]
Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@ DST ?= ~/.bin/
terraform-lsp:
go build -ldflags "-X main.GitCommit=$(COMMIT) -X main.Version=$(VERSION) -X main.Date=$(DATE)"

copy: terraform-lsp
copy: terraform-lsp | create-dir
cp ./terraform-lsp $(DST) && cp ./terraform-lsp ~/

create-dir:
mkdir -p $(DST)

clean:
rm -f terraform-lsp

Expand Down
1 change: 1 addition & 0 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ buildGoModule rec {
src = ./.;

modSha256 = null;
vendorSha256 = null;

buildPhase = ''
runHook preBuild
Expand Down
21 changes: 21 additions & 0 deletions docs/editors/vim.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,24 @@
Todo: add config snippets

- Should work with all LSP plugin on vim

### coc.nvim

- Install the [coc.nvim plugin](https://github.com/neoclide/coc.nvim)
- Add the following snippet to the `coc-setting.json` file (editable via `:CocConfig` in NeoVim)

```json
{
"languageserver": {
"terraform": {
"command": "terraform-lsp",
"filetypes": [
"terraform",
"tf"
],
"initializationOptions": {},
"settings": {}
}
}
}
```

0 comments on commit 883f5c1

Please sign in to comment.