Bugfix: Fixed edition issue with rustfmt. (#881)

This commit is contained in:
Uzaaft 2021-07-11 20:15:03 +02:00 committed by GitHub
parent 2a1acc7968
commit ed973fdb9d
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -226,7 +226,7 @@ O = {
-- @usage can be clippy
formatter = {
exe = "rustfmt",
args = { "--emit=stdout" },
args = { "--emit=stdout", "--edition=2018" },
},
linter = "",
diagnostics = {

View file

@ -116,7 +116,7 @@ O.plugin.which_key = {
"<cmd>Telescope lsp_workspace_diagnostics<cr>",
"Workspace Diagnostics",
},
f = { "<cmd>FormatWrite<cr>", "Format" },
f = { "<cmd>silent FormatWrite<cr>", "Format" },
i = { "<cmd>LspInfo<cr>", "Info" },
j = { "<cmd>lua vim.lsp.diagnostic.goto_next({popup_opts = {border = O.lsp.popup_border}})<cr>", "Next Diagnostic" },
k = { "<cmd>lua vim.lsp.diagnostic.goto_prev({popup_opts = {border = O.lsp.popup_border}})<cr>", "Prev Diagnostic" },