diff --git a/dotfiles/.tidy.conf b/dotfiles/.tidy.conf new file mode 100644 index 0000000..221f5c9 --- /dev/null +++ b/dotfiles/.tidy.conf @@ -0,0 +1,42 @@ +anchor-as-name: no #? +doctype: omit +drop-empty-paras: no +fix-backslash: no +fix-bad-comments: no +fix-uri:no +hide-endtags: yes #? +#input-xml: yes #? +join-styles: no +literal-attributes: yes +lower-literals: no +merge-divs: no +merge-spans: no +output-html: yes +preserve-entities: yes +quote-ampersand: no +quote-nbsp: no +show-body-only: auto + +#Diagnostics Options Reference +show-errors: 0 +show-warnings: 0 + +#Pretty Print Options Reference +break-before-br: yes +indent: yes +indent-attributes: no #default +indent-spaces: 4 +tab-size: 4 +wrap: 132 +wrap-asp: no +wrap-jste: no +wrap-php: no +wrap-sections: no + +#Character Encoding Options Reference +char-encoding: utf8 + +#Miscellaneous Options Reference +force-output: yes +quiet: yes +tidy-mark: no diff --git a/dotfiles/.vimrc b/dotfiles/.vimrc index c66831d..cbec65b 100644 --- a/dotfiles/.vimrc +++ b/dotfiles/.vimrc @@ -310,7 +310,7 @@ let g:ale_linters = {'python': ['flake8', 'mypy', 'pylint', 'prospector']} let g:ale_fixers = {'python': ['isort', 'black'], \'json': ['fixjson'], \'html': ['html-beautify', 'tidy'], - \'htmldjango': ['html-beautify'], + \'htmldjango': ['html-beautify', 'tidy'], \'xml': ['xmllint'], \'java': ['uncrustify'], \'javascript': ['eslint', 'prettier', 'xo', 'standard'], @@ -474,6 +474,10 @@ nmap g (coc-definition) " nmap gi (coc-implementation) " nmap gr (coc-references) + +" Don't hide stuff in tex files like \textbf{} +let g:tex_conceal="" + " Load local config if there is one if filereadable($HOME . "/.vimrc.local") source ~/.vimrc.local diff --git a/dotfiles/.zshrc b/dotfiles/.zshrc index c20c00c..2f7df9f 100644 --- a/dotfiles/.zshrc +++ b/dotfiles/.zshrc @@ -63,6 +63,10 @@ setopt HIST_BEEP # Beep when accessing nonexistent history. PS1="(%*) %F{green}%n%f@%F{magenta}%m%f %F{blue}%B%~%b%f %# " # https://wiki.gentoo.org/wiki/Zsh/Guide#Prompts +# Set variables + +export HTML_TIDY=~/.tidy.conf + # Other settings setopt autocd # Change directory without typing "cd" in front of it. @@ -72,3 +76,4 @@ setxkbmap -option caps:escape # Change capslock key to escape zstyle ':completion:*' rehash true # Find new executables for autcompletion stty -ixon # Ignore and pass through ctrl-s and ctrl-q as normal input (quicksave bin for vim) +