mirror of
https://github.com/sadan4/nvim.git
synced 2025-06-08 04:43:03 -04:00
a
This commit is contained in:
parent
e649c257a1
commit
671a7efdb9
6 changed files with 833 additions and 3 deletions
|
@ -11,12 +11,46 @@ require("formatter").setup({
|
|||
log_level = vim.log.levels.WARN,
|
||||
-- All formatter configurations are opt-in
|
||||
filetype = {
|
||||
yaml = {
|
||||
require("formatter.filetypes.yaml").yamlfmt,
|
||||
function()
|
||||
return {
|
||||
exe = "yamlfmt",
|
||||
args = { "-in" },
|
||||
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),
|
||||
},
|
||||
cpp = {
|
||||
require("formatter.filetypes.c").clangformat,
|
||||
function()
|
||||
return {
|
||||
util.copyf(defaults.clangformat),
|
||||
}
|
||||
end,
|
||||
},
|
||||
h = {
|
||||
require("formatter.filetypes.c").clangformat,
|
||||
function()
|
||||
return {
|
||||
util.copyf(defaults.clangformat),
|
||||
}
|
||||
end,
|
||||
},
|
||||
c = {
|
||||
require("formatter.filetypes.c").clangformat,
|
||||
function()
|
||||
return {
|
||||
util.copyf(defaults.clangformat),
|
||||
}
|
||||
end,
|
||||
},
|
||||
kotlin = {
|
||||
require("formatter.filetypes.kotlin").ktlint,
|
||||
function()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue