Default config reformat (#951)

This commit is contained in:
Abouzar Parvan 2021-07-15 05:44:25 +04:30 committed by GitHub
parent 7f11162bd8
commit f95e150518
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
24 changed files with 233 additions and 313 deletions

View file

@ -1,8 +1,24 @@
local M = {}
M.config = function()
-- TODO: implement config for language
return "No config available!"
O.lang.rust = {
rust_tools = {
active = false,
parameter_hints_prefix = "<-",
other_hints_prefix = "=>", -- prefix for all the other hints (type, chaining)
},
-- @usage can be clippy
formatter = {
exe = "rustfmt",
args = { "--emit=stdout", "--edition=2018" },
},
linter = "",
diagnostics = {
virtual_text = { spacing = 0, prefix = "" },
signs = true,
underline = true,
},
}
end
M.format = function()