diff --git a/.gitmodules b/.gitmodules index 143fd2ac..f2030cc8 100644 --- a/.gitmodules +++ b/.gitmodules @@ -73,3 +73,6 @@ [submodule "nvim/.config/nvim/pack/bundle/opt/vim-snippets"] path = nvim/.config/nvim/pack/bundle/opt/vim-snippets url = https://github.com/honza/vim-snippets +[submodule "nvim/.config/nvim/pack/bundle/opt/lexima.vim"] + path = nvim/.config/nvim/pack/bundle/opt/lexima.vim + url = https://github.com/cohama/lexima.vim diff --git a/bin/.bin/webtest/analyse-headers b/bin/.bin/webtest/analyse-headers index f099dfcc..8fef7912 100755 --- a/bin/.bin/webtest/analyse-headers +++ b/bin/.bin/webtest/analyse-headers @@ -432,6 +432,7 @@ usage(){ Options: -h, --help Display this help and exit + -k, --insecure Ignores certificate errors " } @@ -472,11 +473,13 @@ done set -- "${options[@]}" unset options +insecure="" # Read the options and set stuff while [[ $1 = -?* ]]; do case $1 in -h|--help) usage; exit;; + -k|--insecure) insecure="-k" ;; --) shift; break ;; *) die "invalid option: '$1'." ;; esac @@ -493,7 +496,7 @@ url="${args[0]}" if [ "$url" = "-" ]; then headers="$(cat -)" else - headers="$(curl -s -I "$url")" + headers="$(curl -s -I $insecure "$url")" fi missingHeaders="x-frame-options @@ -533,7 +536,7 @@ while read -r line; do fi done<<<"$(echo "$headers" | sed '1d')" # We don't want the initial http banner -echo "$missingHeaders" | while read -r line; do +echo -n "$missingHeaders" | while read -r line; do echo -e "${RED}$line${NC}" functionName="test_$line" "$functionName" >> "$tmpfile" diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim index 4df98874..5bd66e9a 100644 --- a/nvim/.config/nvim/init.vim +++ b/nvim/.config/nvim/init.vim @@ -6,20 +6,27 @@ if has('packages') packadd! AnsiEsc.vim packadd! fzf.vim packadd! gruvbox + packadd! lexima.vim + packadd! ultisnips packadd! vim-fugitive packadd! vim-json packadd! vim-less packadd! vim-repeat + packadd! vim-snippets packadd! vim-surround packadd! vim-tridactyl packadd! vim-vinegar if has('nvim') - packadd! nvim-lspconfig packadd! deoplete.nvim packadd! deoplete-abook packadd! deoplete-lsp packadd! deoplete-notmuch packadd! firenvim + lua <