(zsh+vim) Add configuration for terraform

This commit is contained in:
Tanguy Herbron 2023-03-06 15:01:35 +01:00
parent 001f99a0ac
commit 5215c6d006
3 changed files with 12 additions and 1 deletions

View File

@ -23,7 +23,8 @@
"command": "terraform-ls",
"args": ["serve"],
"filetypes": ["terraform", "tf", "hcl"],
"initializationOptions": {}
"initializationOptions": {},
"settings": {}
},
"efm": {
"command": "efm-langserver",

View File

@ -18,6 +18,8 @@ Plug 'ryanoasis/vim-devicons'
" File finder and live grep
Plug 'nvim-telescope/telescope.nvim', {'branch': '0.1.x'}
Plug 'nvim-lua/plenary.nvim'
" File highlighter with wide language support
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
" Grep utility for whole project
@ -193,3 +195,6 @@ nnoremap <leader>t :TableFormat<CR>
let g:coc_disable_startup_warning = 1
set mouse=
" Add treesitter highlight
lua require'nvim-treesitter.configs'.setup{highlight={enable=true}}

5
.zshrc
View File

@ -111,6 +111,8 @@ alias gitcommiiiiiiiiiiiiiit='cz'
alias clip='xclip -selection primary'
alias w='watch -n 1'
# alias wg-reload="f() {sudo bash -c 'cd /etc/wireguard && wg syncconf $1 <(wg-quick strip $1)'};f"
function wg-reload() {
sudo bash -c 'cd /etc/wireguard && wg syncconf $0 <(wg-quick strip $0)' $1
@ -124,3 +126,6 @@ function wg-reload() {
# Generated for envman. Do not edit.
[ -s "$HOME/.config/envman/load.sh" ] && source "$HOME/.config/envman/load.sh"
autoload -U +X bashcompinit && bashcompinit
complete -o nospace -C /usr/bin/terraform terraform