mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-20 18:45:08 +02:00
Bugfix: Fixed edition issue with rustfmt. (#881)
This commit is contained in:
parent
2a1acc7968
commit
ed973fdb9d
2 changed files with 2 additions and 2 deletions
|
@ -226,7 +226,7 @@ O = {
|
|||
-- @usage can be clippy
|
||||
formatter = {
|
||||
exe = "rustfmt",
|
||||
args = { "--emit=stdout" },
|
||||
args = { "--emit=stdout", "--edition=2018" },
|
||||
},
|
||||
linter = "",
|
||||
diagnostics = {
|
||||
|
|
|
@ -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" },
|
||||
|
|
Loading…
Reference in a new issue