diff options
| author | Kyren223 <ulmliad223@gmail.com> | 2024-08-06 22:02:22 +0300 |
|---|---|---|
| committer | Kyren223 <ulmliad223@gmail.com> | 2024-08-06 22:02:22 +0300 |
| commit | ae045c49937e059091eb19b8021d473926ae3557 (patch) | |
| tree | a771766d3f5ddccf1e19fe7f9c33dbc88a64365a /.config/nvim/lua | |
| parent | 7c85c6be8d84b5f0786c1c672247057e327da7e1 (diff) | |
feat(nvim): overseer cmake_build template supports extra args to cmake
Diffstat (limited to '.config/nvim/lua')
| -rw-r--r-- | .config/nvim/lua/overseer/template/custom/cmake_build.lua | 3 |
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, |
