diff options
| author | Kyren223 <Kyren223@proton.me> | 2025-05-01 16:59:17 +0300 |
|---|---|---|
| committer | Kyren223 <Kyren223@proton.me> | 2025-05-01 16:59:17 +0300 |
| commit | fa73efd6ab83c9ba1434e8e8a0e297315dd679b4 (patch) | |
| tree | 0c23840876d5f473de2c0f7f00d62fb7369c26c7 /.config/nvim/lua/overseer/template/custom/make_c_file.lua | |
| parent | 5b6799fa0ef35df1261b1b6715f4a5eebe881596 (diff) | |
Removed a bunch of unneeded plugins
Diffstat (limited to '.config/nvim/lua/overseer/template/custom/make_c_file.lua')
| -rw-r--r-- | .config/nvim/lua/overseer/template/custom/make_c_file.lua | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/.config/nvim/lua/overseer/template/custom/make_c_file.lua b/.config/nvim/lua/overseer/template/custom/make_c_file.lua deleted file mode 100644 index 75f89d0..0000000 --- a/.config/nvim/lua/overseer/template/custom/make_c_file.lua +++ /dev/null @@ -1,33 +0,0 @@ -local overseer = require('overseer') -return { - name = 'Make Current C file', - builder = function(_) - local path = vim.fn.expand('%:p') - local dir, file = path:gmatch('(.*)[/\\](.*)')() - file = string.sub(file, 1, -3) -- remove .c extension - - return { - cmd = { 'make' }, - args = { file }, - cwd = dir, - } - end, - tags = { overseer.TAG.BUILD }, - priority = 50, - condition = { - filetype = { 'c' }, - callback = function() - -- Disable if already using make/cmake - local filename = vim.fn.expand('%:p') - local root_dir = require('lspconfig/util').root_pattern( - 'Makefile', - 'build/Makefile', - 'CMakePresets.json', - 'CTestConfig.cmake', - 'build', - 'cmake' - )(filename) - return root_dir == nil - end, - }, -} |
