broken, somewhata

This commit is contained in:
sadanslargehole 2024-03-21 15:49:14 -04:00
parent f5c8df2248
commit 297db60cf3
No known key found for this signature in database
GPG key ID: B2E2F4A5161A7800
3 changed files with 34 additions and 5 deletions

View file

@ -21,11 +21,34 @@ require("formatter").setup({
}
end,
},
java = {
require("formatter.filetypes.java").clangformat,
function()
return {
exe = "clang-format",
args = {
"--style=Google",
"--assume-filename=.java",
},
stdin = true,
}
end,
},
-- Formatter configurations for filetype "lua" go here
-- and will be executed in order
typescript = {
require("formatter.filetypes.typescript").eslint_d,
util.copyf(defaults.eslint_d),
function()
return {
args = {
"--stdin",
"--fix-to-stdout",
},
exe = "eslint_d",
stdin = true,
try_node_modules = true,
}
end,
},
cpp = {
require("formatter.filetypes.c").clangformat,