Compare commits

...

2 Commits

Author SHA1 Message Date
Marcin Woźniak
ce51082e27 Added the stable terraform version function
Signed-off-by: Marcin Woźniak <marcin.wozniak@wundermanthompson.com>
2023-10-19 10:17:02 +02:00
5d20536490 Added the new neovim configuration
Signed-off-by: Marcin Woźniak <marcin.wozniak@wundermanthompson.com>
2023-10-19 10:16:39 +02:00
2 changed files with 21 additions and 2 deletions

View File

@ -563,7 +563,7 @@ nnoremap <leader>r :NvimTreeRefresh<CR>
nnoremap <leader>n :NvimTreeFindFile<CR> nnoremap <leader>n :NvimTreeFindFile<CR>
nnoremap <F11> :Goyo <CR> nnoremap <F11> :Goyo <CR>
cnoremap w!! execute 'silent! write !sudo tee % >/dev/null' <bar> edit! cnoremap w!! execute 'silent! write !sudo tee % >/dev/null' <bar> edit!
map <F3> :setlocal spell! spelllang=en_gb<CR> map <F3> :setlocal spell! spelllang=en<CR>
map <F4> :setlocal spell! spelllang=pl<CR> map <F4> :setlocal spell! spelllang=pl<CR>
" Human Errors " Human Errors
@ -649,6 +649,9 @@ au BufNewFile,BufRead,BufWritePre *.ebuild let g:shfmt_extra_args = '-ci -sr -s'
autocmd BufWritePre *.tf lua vim.lsp.buf.format() autocmd BufWritePre *.tf lua vim.lsp.buf.format()
autocmd BufWritePre *.tfvars lua vim.lsp.buf.format() autocmd BufWritePre *.tfvars lua vim.lsp.buf.format()
" Markdown
autocmd BufRead,BufNewFile *.md setlocal spell spelllang=en_us
" Automatically deletes all trailing whitespace and newlines at end of file on save. " Automatically deletes all trailing whitespace and newlines at end of file on save.
autocmd BufWritePre * %s/\s\+$//e autocmd BufWritePre * %s/\s\+$//e
autocmd BufWritepre * %s/\n\+\%$//e autocmd BufWritepre * %s/\n\+\%$//e

View File

@ -74,6 +74,21 @@ function install_lazy() {
GO111MODULE=on go install github.com/jesseduffield/lazydocker@latest GO111MODULE=on go install github.com/jesseduffield/lazydocker@latest
} }
function install_terraform_stable() {
# Install terraform and terraform-ls
GO111MODULE=on go install github.com/hashicorp/terraform-ls@latest
if [[ "$(uname)" == "Darwin" ]]; then
brew install tflint -q
brew install tfenv -q
TFENV_ARCH=amd64 tfenv install 1.5.5
tfenv use 1.5.5
else
GO111MODULE=on go install github.com/hashicorp/terraform@v1.5.5
curl -s https://raw.githubusercontent.com/terraform-linters/tflint/master/install_linux.sh | bash
fi
}
function install_terraform() { function install_terraform() {
# Install terraform and terraform-ls # Install terraform and terraform-ls
GO111MODULE=on go install github.com/hashicorp/terraform-ls@latest GO111MODULE=on go install github.com/hashicorp/terraform-ls@latest
@ -240,7 +255,8 @@ function main() {
command_start install_shfmt command_start install_shfmt
command_start install_shellcheck command_start install_shellcheck
command_start install_gopls command_start install_gopls
command_start install_terraform # command_start install_terraform
command_start install_terraform_stable
command_start install_terragrunt command_start install_terragrunt
command_start install_azure_cli command_start install_azure_cli
command_start install_black command_start install_black