summaryrefslogtreecommitdiff
path: root/.config/nvim
diff options
context:
space:
mode:
authorKyren223 <ulmliad223@gmail.com>2024-08-06 22:02:22 +0300
committerKyren223 <ulmliad223@gmail.com>2024-08-06 22:02:22 +0300
commitae045c49937e059091eb19b8021d473926ae3557 (patch)
treea771766d3f5ddccf1e19fe7f9c33dbc88a64365a /.config/nvim
parent7c85c6be8d84b5f0786c1c672247057e327da7e1 (diff)
feat(nvim): overseer cmake_build template supports extra args to cmake
Diffstat (limited to '.config/nvim')
-rw-r--r--.config/nvim/lua/overseer/template/custom/cmake_build.lua3
1 files changed, 2 insertions, 1 deletions
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,