add terraform language server

This commit is contained in:
Pim Kunis 2023-01-23 14:02:52 +01:00
parent c0ee34bb94
commit e969ba230b
4 changed files with 18 additions and 16 deletions

View file

@ -2,26 +2,26 @@
hosts: self hosts: self
roles: roles:
- role: system - role: system
tags: system tags: [system]
- role: bash - role: bash
tags: bash tags: [bash, os3]
- role: alacritty - role: alacritty
tags: alacritty tags: [alacritty, os3]
- role: wireguard - role: wireguard
tags: wireguard tags: [wireguard]
- role: asdf - role: asdf
tags: asdf tags: [asdf]
- role: neovim - role: neovim
tags: neovim tags: [neovim, os3]
- role: signal - role: signal
tags: signal tags: [signal, os3]
- role: virtualbox - role: virtualbox
tags: virtualbox tags: [virtualbox]
- role: vscodium - role: vscodium
tags: vscodium tags: [vscodium, os3]
- role: syncthing - role: syncthing
tags: syncthing tags: [syncthing]
- role: strawberry - role: strawberry
tags: strawberry tags: [strawberry]
- role: nicotine - role: nicotine
tags: nicotine tags: [nicotine]

View file

@ -32,6 +32,6 @@ local on_attach = function(client, bufnr)
vim.keymap.set('n', '<leader>f', function() vim.lsp.buf.format { async = true } end, bufopts) vim.keymap.set('n', '<leader>f', function() vim.lsp.buf.format { async = true } end, bufopts)
end end
require("lspconfig").pylsp.setup{ require("lspconfig").pylsp.setup{ on_attach = on_attach }
on_attach = on_attach
} require'lspconfig'.terraformls.setup{ on_attach = on_attach }

View file

@ -44,3 +44,6 @@
pip: pip:
name: name:
- "python-lsp-server[all]" - "python-lsp-server[all]"
- name: Install terraform-ls
apt:
pkg: terraform-ls

View file

@ -15,7 +15,6 @@
- tree - tree
- wireshark - wireshark
- units - units
- imagemagick
- name: Install .gitconfig - name: Install .gitconfig
template: template:
src: "{{ role_path }}/templates/.gitconfig.j2" src: "{{ role_path }}/templates/.gitconfig.j2"