mirror of
https://github.com/sadan4/nvim.git
synced 2025-06-09 05:13:01 -04:00
broken, somewhata
This commit is contained in:
parent
f5c8df2248
commit
297db60cf3
3 changed files with 34 additions and 5 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue