nixpkgs/home/programs/neovim/configuration/after/ftplugin/xml.vim
Daniel Siepmann 8448e85bb1
Add xmllint via ale to neovim
Maintain all dependencies via nix / home-manager.
Load xsd schema file.
Define nix xmllint for linting.
2022-03-16 17:12:48 +01:00

13 lines
509 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
augroup xliff
autocmd!
" xsd is installed via home manager
autocmd BufEnter **/*.xlf :let g:ale_xml_xmllint_options = '-schema ~/.local/share/xsd/xliff-core-1.2-strict.xsd'
augroup END