.clang-format for c/c++

This commit is contained in:
Gentoo
2026-03-06 03:55:26 -05:00
parent c907211784
commit 15718d57fa
2 changed files with 48 additions and 6 deletions
+2 -2
View File
@@ -66,11 +66,11 @@ M.languages = {
if not success then
local term_buf = utils.terminal({ cmd })
vim.api.nvim_set_option_value("modifiable", true, { win = term_buf })
vim.api.nvim_set_option_value("modifiable", true, { buf = term_buf })
vim.api.nvim_buf_set_lines(term_buf, 0, -1, false,
vim.list_extend({ "Error during compilation:" }, vim.split(output, "\n", { trimempty = true }))
)
vim.api.nvim_set_option_value("modifiable", false, { win = term_buf })
vim.api.nvim_set_option_value("modifiable", false, { buf = term_buf })
end
if success then
local run_cmd = "cd '" .. build_dir .. "' && ./" .. utils.get_project_name()