From ae045c49937e059091eb19b8021d473926ae3557 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Tue, 6 Aug 2024 22:02:22 +0300 Subject: feat(nvim): overseer cmake_build template supports extra args to cmake --- .config/nvim/lua/overseer/template/custom/cmake_build.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '.config/nvim/lua') diff --git a/.config/nvim/lua/overseer/template/custom/cmake_build.lua b/.config/nvim/lua/overseer/template/custom/cmake_build.lua index cb321a0..4c18627 100644 --- a/.config/nvim/lua/overseer/template/custom/cmake_build.lua +++ b/.config/nvim/lua/overseer/template/custom/cmake_build.lua @@ -5,10 +5,11 @@ return { builder = function(_) local filename = vim.fn.expand('%:p') local root_dir = root_pattern(filename) or vim.fn.getcwd() + local args = vim.g.overseer_cmake_extra_args or '' return { name = 'Cmake', - cmd = 'cmake .. && cmake --build .', + cmd = 'cmake ' .. args .. '.. && cmake --build .', cwd = root_dir .. '/build', } end, -- cgit v1.3.1