easier norm complience

This commit is contained in:
2026-10-01 22:15:45 +02:00
parent d9f92eb203
commit b0679fa52f
2 changed files with 11 additions and 1 deletions
+7
View File
@@ -18,3 +18,10 @@ cc-run(){
rm "${file}.out"
}
# https://pypi.org/project/c-formatter-42/
# install via
# pip3 install --user c-formatter-42
norm(){
c_formatter_42 *.c *.h
}
+4 -1
View File
@@ -3,7 +3,8 @@ local ac = vim.api.nvim_create_autocmd
local aug = vim.api.nvim_create_augroup
uc("W", "w|e", { desc = "write file then refresh buffer" })
uc("ProjectDiagnostics", require("romanzy.custom.project_diagnostics").run, { desc = "check project warnings and errors" })
uc("ProjectDiagnostics", require("romanzy.custom.project_diagnostics").run,
{ desc = "check project warnings and errors" })
ac("TextYankPost", {
desc = "Highlight when yanking text",
@@ -13,6 +14,8 @@ ac("TextYankPost", {
end,
})
uc("NormFormat", "!c_formatter_42 *.c *.h", { desc = "comply with the norm in C" })
-- ac("LspAttach", {
-- desc = "Notify user about attached LSP clients",
-- group = aug("LSPOnAttach", { clear = true }),