Fixed disappearing latex stuff

This commit is contained in:
Sebastian 2021-11-13 22:10:08 +01:00
parent 995b975105
commit f48d8f1238
3 changed files with 52 additions and 1 deletions

42
dotfiles/.tidy.conf Normal file
View file

@ -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

View file

@ -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 <silent> <leader>g <Plug>(coc-definition)
" nmap <silent> gi <Plug>(coc-implementation)
" nmap <silent> gr <Plug>(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

View file

@ -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)