Latest configuration changes
This commit is contained in:
parent
b2d372c538
commit
beca7d3566
9 changed files with 93 additions and 60 deletions
|
|
@ -3,29 +3,26 @@
|
|||
return {
|
||||
{
|
||||
"stevearc/conform.nvim",
|
||||
setup = {
|
||||
formatters = {
|
||||
black = {
|
||||
command = "black",
|
||||
prepend_args = { "--line-length", "100" },
|
||||
},
|
||||
"prettier",
|
||||
formatters = {
|
||||
golines = {
|
||||
args = {
|
||||
"--max-len=100",
|
||||
"--base-formatter=gofmt",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
opts = {
|
||||
notify_on_error = false,
|
||||
format_on_save = {
|
||||
timeout_ms = 2500,
|
||||
lsp_fallback = true,
|
||||
},
|
||||
formatters = {
|
||||
black = {
|
||||
prepend_args = { "--line-length", "100" },
|
||||
},
|
||||
beautysh = {
|
||||
prepend_args = { "--indent-size", "2" },
|
||||
},
|
||||
golines = {
|
||||
prepend_args = {
|
||||
"--max-len=100",
|
||||
"--base-formatter=gofmt",
|
||||
},
|
||||
},
|
||||
},
|
||||
formatters_by_ft = {
|
||||
lua = { "stylua" },
|
||||
python = { "black" },
|
||||
|
|
@ -33,7 +30,7 @@ return {
|
|||
c = { "clang-format" },
|
||||
sh = { "beautysh" },
|
||||
tex = { "latexindent" },
|
||||
java = { "java" },
|
||||
java = { "google-java-format" },
|
||||
javascript = { "prettier" },
|
||||
typescript = { "prettier" },
|
||||
typescriptreact = { "prettier" },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue