aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.local/share/nvim/site/plugin/neomake.vim
diff options
context:
space:
mode:
authorYaroslav <contact@yaroslavps.com>2020-03-31 17:52:49 +0300
committerYaroslav <contact@yaroslavps.com>2020-03-31 17:52:49 +0300
commit7217c7749e5403c9c7856c1d12c7986eb9c3b460 (patch)
treed60a112d9119a51af1cf5f590c5efad81751edf6 /dotfiles/.local/share/nvim/site/plugin/neomake.vim
parent9a3aa7b20a67c1b7991da1da9508ad5f78f76352 (diff)
downloadvimrice-7217c7749e5403c9c7856c1d12c7986eb9c3b460.tar.gz
vimrice-7217c7749e5403c9c7856c1d12c7986eb9c3b460.zip
Goodbye vim, been using neovim for ages now; home directory cleanup
Diffstat (limited to 'dotfiles/.local/share/nvim/site/plugin/neomake.vim')
-rw-r--r--dotfiles/.local/share/nvim/site/plugin/neomake.vim50
1 files changed, 50 insertions, 0 deletions
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(<bang>1, [<f-args>])
+
+" These commands are available for clarity
+command! -nargs=* -bar -complete=customlist,neomake#cmd#complete_makers
+ \ NeomakeProject Neomake! <args>
+command! -nargs=* -bar -complete=customlist,neomake#cmd#complete_makers
+ \ NeomakeFile Neomake <args>
+
+command! -nargs=+ -bang -complete=shellcmd
+ \ NeomakeSh call neomake#ShCommand(<bang>0, <q-args>)
+command! NeomakeListJobs call neomake#ListJobs()
+command! -bang -nargs=1 -complete=custom,neomake#cmd#complete_jobs
+ \ NeomakeCancelJob call neomake#CancelJob(<q-args>, <bang>0)
+command! -bang NeomakeCancelJobs call neomake#CancelJobs(<bang>0)
+
+command! -bang -bar -nargs=? -complete=customlist,neomake#cmd#complete_makers
+ \ NeomakeInfo call neomake#debug#display_info(<bang>0, <f-args>)
+
+command! -bang -bar NeomakeClean call neomake#cmd#clean(<bang>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(<count>, 1)
+command! -bar -count=1 NeomakePrevLoclist call neomake#list#prev(<count>, 1)
+command! -bar -count=1 NeomakeNextQuickfix call neomake#list#next(<count>, 0)
+command! -bar -count=1 NeomakePrevQuickfix call neomake#list#prev(<count>, 0)
+
+call neomake#setup#setup_autocmds()
+
+" vim: ts=4 sw=4 et