From 372b76de51883b03e4cf4748c048545b4330d466 Mon Sep 17 00:00:00 2001 From: Blake Romero Date: Sat, 5 Jul 2025 21:30:35 +0100 Subject: Add Makefile directory checking --- lua/config/settings.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lua/config/settings.lua') diff --git a/lua/config/settings.lua b/lua/config/settings.lua index 9f42db5..f18bcf8 100644 --- a/lua/config/settings.lua +++ b/lua/config/settings.lua @@ -1,5 +1,7 @@ vim.opt.autochdir = true +vim.opt.makeprg = 'if [ -f Makefile ]; then make; else make -C ..; fi' + -- Tabs vim.opt.expandtab = true vim.opt.tabstop = 2 -- cgit