Compare commits

...

2 Commits

Author SHA1 Message Date
c9e356a584
Added custom function 2023-06-26 22:06:05 +02:00
c1afe43ec1
Moved the terraform installing 2023-06-20 21:25:15 +02:00
2 changed files with 9 additions and 1 deletions

View File

@ -655,3 +655,11 @@ let $FZF_DEFAULT_COMMAND = 'find . -type f -not -path "*/\.git/*" -not -path "*/
command! -bang -nargs=* Find call fzf#vim#grep('rg --column --line-number --no-heading --fixed-strings --ignore-case --hidden --follow --color "always" '.shellescape(<q-args>), 1, <bang>0) command! -bang -nargs=* Find call fzf#vim#grep('rg --column --line-number --no-heading --fixed-strings --ignore-case --hidden --follow --color "always" '.shellescape(<q-args>), 1, <bang>0)
command! -bang -nargs=* FindCurrentWord call fzf#vim#grep('rg --column --line-number --no-heading --fixed-strings --ignore-case --hidden --follow --color "always" '.shellescape(expand('<cword>')), 1, <bang>0) command! -bang -nargs=* FindCurrentWord call fzf#vim#grep('rg --column --line-number --no-heading --fixed-strings --ignore-case --hidden --follow --color "always" '.shellescape(expand('<cword>')), 1, <bang>0)
set grepprg=rg\ --vimgrep set grepprg=rg\ --vimgrep
" Custom functions "
function! RemoveForti()
:%g/set uuid .*/d
:%g/set comments .*/d
:%s/edit .*/edit 0/g
:%s/ \+//g
endfunction

View File

@ -64,13 +64,13 @@ function install_lazy() {
function install_terraform() { function install_terraform() {
# Install terraform and terraform-ls # Install terraform and terraform-ls
GO111MODULE=on go install github.com/hashicorp/terraform@latest
GO111MODULE=on go install github.com/hashicorp/terraform-ls@latest GO111MODULE=on go install github.com/hashicorp/terraform-ls@latest
if [[ "$(uname)" == "Darwin" ]]; then if [[ "$(uname)" == "Darwin" ]]; then
brew install tflint -q brew install tflint -q
brew install tfenv -q brew install tfenv -q
TFENV_ARCH=amd64 tfenv install latest TFENV_ARCH=amd64 tfenv install latest
else else
GO111MODULE=on go install github.com/hashicorp/terraform@latest
curl -s https://raw.githubusercontent.com/terraform-linters/tflint/master/install_linux.sh | bash curl -s https://raw.githubusercontent.com/terraform-linters/tflint/master/install_linux.sh | bash
fi fi
} }