nixpkgs/home/programs/neovim/configuration/after/ftplugin/xml.vim
Daniel Siepmann 7106b7cac7
Add neovim configuration inline instead of another repository
This eases maintenance as I don't need to commit and push one repo, and
update rev and sha in here.
Instead I can just change configuration and run home-manager switch.
2022-03-15 08:00:46 +01:00

14 lines
637 B
VimL

" Activate spell chechking in xml files, within tags only
set spell spelllang=en
syn spell toplevel
" Disable spell chacking in attributes
syn region xmlString contained start=+"+ end=+"+ contains=xmlEntity,@NoSpell display
syn region xmlString contained start=+'+ end=+'+ contains=xmlEntity,@NoSpell display
" TODO: Find a way to distribute the files
" augroup xliff
" autocmd!
" autocmd BufEnter **/*.xlf :let g:syntastic_xml_xmllint_args = '-schema ~/.dotfiles/xsd/xliff-core-1.2-strict.xsd'
" autocmd BufEnter **/*.xlf :let g:ale_xml_xmllint_options = '-schema ~/.dotfiles/xsd/xliff-core-1.2-strict.xsd'
" augroup END