Public Access
easier norm complience
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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 }),
|
||||
|
||||
Reference in New Issue
Block a user