Skip to content

Commit

Permalink
Check Markdown files with proselint
Browse files Browse the repository at this point in the history
  • Loading branch information
robmiller committed Jan 6, 2022
1 parent f39eeaf commit 96f34ed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vimrc
Expand Up @@ -181,11 +181,15 @@ nnoremap <silent> <cr> :nohlsearch<CR>
nnoremap <tab> %
vnoremap <tab> %
" Lint files with Syntastic on read, not just write
let g:syntastic_check_on_open = 1

" Filetype-specific stuff

" Markdown
au BufNewFile,BufRead *.md set filetype=markdown
autocmd FileType markdown setlocal spell spelllang=en_gb
let g:syntastic_markdown_checkers = ['proselint']

" Set .twig files to HTML Jinja syntax (it's what Twig is based on)
au BufNewFile,BufRead *.twig set filetype=jinja
Expand Down

0 comments on commit 96f34ed

Please sign in to comment.