This repository has been archived on 2024-05-17. You can view files and clone it, but cannot push or open issues or pull requests.
2022-09-16 10:18:16 +03:00
|
|
|
vim.g.neoformat_try_node_exe = 1
|
|
|
|
vim.g.neoformat_only_msg_on_error = 1
|
|
|
|
vim.g.neoformat_enabled_markdown = { "denofmt" }
|
2022-11-23 22:50:16 +03:00
|
|
|
vim.g.neoformat_rust_rustfmt = {
|
|
|
|
exe = "rustfmt",
|
|
|
|
args = { "--edition 2021" },
|
|
|
|
stdin = 1,
|
|
|
|
}
|
2022-09-16 10:18:16 +03:00
|
|
|
|
2022-09-16 23:42:53 +03:00
|
|
|
vim.cmd([[
|
2022-09-16 10:18:16 +03:00
|
|
|
aug fmt
|
|
|
|
au!
|
|
|
|
au BufWritePre * try | undojoin | Neoformat | catch /E790/ | Neoformat | endtry
|
|
|
|
aug END
|
2022-09-16 23:42:53 +03:00
|
|
|
]])
|