Compare commits

...

2 Commits

Author SHA1 Message Date
Marcin Woźniak 8b55c92799 Changed in neovim
Signed-off-by: Marcin Woźniak <marcin.wozniak@wundermanthompson.com>
2023-03-21 07:39:39 +01:00
Marcin Woźniak e530968eac Added update_zsh
Signed-off-by: Marcin Woźniak <marcin.wozniak@wundermanthompson.com>
2023-03-21 07:39:28 +01:00
2 changed files with 21 additions and 5 deletions

View File

@ -230,6 +230,9 @@ require'lspconfig'.yamlls.setup{
["https://github.com/ansible/schemas/blob/main/f/ansible.json"] = "*.yaml,*.yml"
}
},
yaml = {
keyOrdering = false
},
}
}
@ -611,7 +614,7 @@ autocmd BufRead,BufNewFile /tmp/neomutt* map ZQ :Goyo\|q!<CR>
autocmd BufRead,BufNewFile *.yaml let g:indentLine_enabled = 1
autocmd BufRead,BufNewFile *.yaml let g:indentLine_char = '⦙'
au BufRead,BufNewFile *.yaml,*.yml if search('hosts:\|tasks:', 'nw') | set ft=yaml.ansible | endif
" autocmd BufWritePre * silent! undojoin | Neoformat prettier
autocmd BufWritePre * silent! undojoin | Neoformat prettier
" GoLang
autocmd BufRead *.go set noexpandtab

View File

@ -1,4 +1,5 @@
#!/bin/bash
# shellcheck disable=2045,2086
function timestamp() {
echo "[+] $(date +'%F %T') [INFO] $*"
@ -24,10 +25,6 @@ function install_neovim_module_for_python() {
pip3 install neovim --pre --user --force
}
function install_awscli() {
pip3 install awscli --pre --user --force
}
function install_pyright() {
# Install pyright
sudo npm -g i pyright --force
@ -97,6 +94,21 @@ function install_azure_cli() {
pip3 install azure-cli --user --pre --force
}
function install_awscli() {
pip3 install awscli --pre --user --force
}
function update_zsh() {
for i in $(ls $HOME/.config/zsh); do
FOLDER="$HOME/.config/zsh/$i"
git pull
cd "$FOLDER" || echo "Folder is not exists"
done
ZSHFOLDER="$HOME/.config/zsh/"
curl https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/plugins/aws/aws.plugin.zsh -o "$ZSHFOLDER"/aws/aws.plugin.zsh
curl https://raw.githubusercontent.com/Azure/azure-cli/dev/az.completion -o "$ZSHFOLDER"/azure-cli/az.completion
}
function main() {
command_start update_pip
command_start install_pyright
@ -111,6 +123,7 @@ function main() {
command_start install_black
command_start install_ansible
command_start install_meraki_ansible
command_start update_zsh
}
main