From 78447af8df34f4ad0bbb1b2d34926a31f91cb7e1 Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Tue, 22 Sep 2020 12:56:42 +0530 Subject: [PATCH] nvim: after: ftplugin: C: Set makeprg to ninja For C, we now work on pulseaudio, gstreamer and pipewire projects which all use meson and ninja, so set makeprg to ninja build command. --- nvim/.config/nvim/after/ftplugin/c.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/nvim/.config/nvim/after/ftplugin/c.vim b/nvim/.config/nvim/after/ftplugin/c.vim index 8aab67f..a76096d 100644 --- a/nvim/.config/nvim/after/ftplugin/c.vim +++ b/nvim/.config/nvim/after/ftplugin/c.vim @@ -3,6 +3,7 @@ setlocal foldmethod=syntax " Scanning included files when ^n is troublesome setlocal complete-=i setlocal path+=/usr/include/** +setlocal makeprg=ninja\ -C\ build nmap ct :AsyncDo ctags -R --fields=+nS . nmap cu :AsyncDo cscope -bqR