Quellcode durchsuchen

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

Uzaaft vor 4 Jahren
Ursprung
Commit
ed973fdb9d
2 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 1 1
      lua/default-config.lua
  2. 1 1
      lua/lv-which-key/config.lua

+ 1 - 1
lua/default-config.lua

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

+ 1 - 1
lua/lv-which-key/config.lua

@@ -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" },