diff options
author | Abouzar Parvan <[email protected]> | 2021-07-15 05:44:25 +0430 |
---|---|---|
committer | GitHub <[email protected]> | 2021-07-14 21:14:25 -0400 |
commit | f95e150518e40f08a2cb31365e90895e31465d7e (patch) | |
tree | eaae7a371124c4fb0a7778a79768a26be89d85a9 /lua/lang/rust.lua | |
parent | 7f11162bd80b37af8ae67e41f10e962baacf8047 (diff) |
Default config reformat (#951)
Diffstat (limited to 'lua/lang/rust.lua')
-rw-r--r-- | lua/lang/rust.lua | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/lua/lang/rust.lua b/lua/lang/rust.lua index dfd2c475..64c1402a 100644 --- a/lua/lang/rust.lua +++ b/lua/lang/rust.lua @@ -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() |