Skip to content

Instantly share code, notes, and snippets.

@fannheyward
Created October 16, 2018 02:28
Show Gist options
  • Save fannheyward/983cec554f38b8c5927be279b0274f38 to your computer and use it in GitHub Desktop.
Save fannheyward/983cec554f38b8c5927be279b0274f38 to your computer and use it in GitHub Desktop.
if !exists('g:neomake') | let g:neomake = {} | endif
let g:neomake_verbose = 1
"let neomake.open_list = 2 " also preserve cursor position
let g:neomake_list_height = 5
"let g:neomake_php_enabled_makers = ['php', 'phpcs', 'phpmd']
let g:neomake_latex_enabled_makers = ['chktex', 'lacheck', 'rubberinfo', 'proselint', 'latexrun']
let g:neomake_bib_enabled_makers = ['bibtex']
let g:neomake_nvimluatest_maker = {
\ 'exe': 'sh',
\ 'args': ['-c', 'make functionaltest TEST_FILE=%:p 2>/dev/null | ~/.config/vim/bin/error-filter-for-nvim-lua-tests.sh'],
\ 'errorformat': '%f:%l: Expected objects to be the same.',
\ }
let g:neomake_luctest_maker = {
\ 'exe': 'make',
\ 'args': ['functionaltest', 'TEST_FILE=%:p'],
\ 'errorformat': '%f:%l: Expected objects to be the same.',
\ }
" A maker to build a pdf file from a tex file if a makefile is afailable.
let g:neomake_tex_make_maker = {
\ 'exe': { -> filereadable(getcwd() . '/makefile') ? 'make' : '' },
\ 'args': { -> [expand('%:p:t:r') . '.pdf'] },
\ }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment