From 7217c7749e5403c9c7856c1d12c7986eb9c3b460 Mon Sep 17 00:00:00 2001 From: Yaroslav Date: Tue, 31 Mar 2020 17:52:49 +0300 Subject: Goodbye vim, been using neovim for ages now; home directory cleanup --- dotfiles/.local/share/nvim/site/plugin/neomake.vim | 50 ++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 dotfiles/.local/share/nvim/site/plugin/neomake.vim (limited to 'dotfiles/.local/share/nvim/site/plugin/neomake.vim') diff --git a/dotfiles/.local/share/nvim/site/plugin/neomake.vim b/dotfiles/.local/share/nvim/site/plugin/neomake.vim new file mode 100644 index 0000000..781871a --- /dev/null +++ b/dotfiles/.local/share/nvim/site/plugin/neomake.vim @@ -0,0 +1,50 @@ +if exists('g:loaded_neomake') || &compatible + finish +endif +let g:loaded_neomake = 1 + +command! -nargs=* -bang -bar -complete=customlist,neomake#cmd#complete_makers + \ Neomake call neomake#Make(1, []) + +" These commands are available for clarity +command! -nargs=* -bar -complete=customlist,neomake#cmd#complete_makers + \ NeomakeProject Neomake! +command! -nargs=* -bar -complete=customlist,neomake#cmd#complete_makers + \ NeomakeFile Neomake + +command! -nargs=+ -bang -complete=shellcmd + \ NeomakeSh call neomake#ShCommand(0, ) +command! NeomakeListJobs call neomake#ListJobs() +command! -bang -nargs=1 -complete=custom,neomake#cmd#complete_jobs + \ NeomakeCancelJob call neomake#CancelJob(, 0) +command! -bang NeomakeCancelJobs call neomake#CancelJobs(0) + +command! -bang -bar -nargs=? -complete=customlist,neomake#cmd#complete_makers + \ NeomakeInfo call neomake#debug#display_info(0, ) + +command! -bang -bar NeomakeClean call neomake#cmd#clean(1) + +" Enable/disable/toggle commands. +command! -bar NeomakeToggle call neomake#cmd#toggle(g:) +command! -bar NeomakeToggleBuffer call neomake#cmd#toggle(b:) +command! -bar NeomakeToggleTab call neomake#cmd#toggle(t:) +command! -bar NeomakeDisable call neomake#cmd#disable(g:) +command! -bar NeomakeDisableBuffer call neomake#cmd#disable(b:) +command! -bar NeomakeDisableTab call neomake#cmd#disable(t:) +command! -bar NeomakeEnable call neomake#cmd#enable(g:) +command! -bar NeomakeEnableBuffer call neomake#cmd#enable(b:) +command! -bar NeomakeEnableTab call neomake#cmd#enable(t:) + +command! NeomakeStatus call neomake#cmd#display_status() + +" NOTE: experimental, no default mappings. +" NOTE: uses -addr=lines (default), and therefore negative counts do not work +" (see https://github.com/vim/vim/issues/3654). +command! -bar -count=1 NeomakeNextLoclist call neomake#list#next(, 1) +command! -bar -count=1 NeomakePrevLoclist call neomake#list#prev(, 1) +command! -bar -count=1 NeomakeNextQuickfix call neomake#list#next(, 0) +command! -bar -count=1 NeomakePrevQuickfix call neomake#list#prev(, 0) + +call neomake#setup#setup_autocmds() + +" vim: ts=4 sw=4 et -- cgit v1.2.3