From ed11e6c19a6ac5465f4a30b146774dcecdb2ec8b Mon Sep 17 00:00:00 2001 From: Felix Tenley Date: Mon, 25 Apr 2022 21:13:22 +0200 Subject: [PATCH] fix(neovim): setup rustfmt --- home/editors/neovim/lsp/lsp.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/home/editors/neovim/lsp/lsp.lua b/home/editors/neovim/lsp/lsp.lua index 9a5d382..d1c90e3 100644 --- a/home/editors/neovim/lsp/lsp.lua +++ b/home/editors/neovim/lsp/lsp.lua @@ -203,6 +203,9 @@ config.diagnosticls.setup { nixfmt = { command = "nixfmt", }, + rustfmt = { + command = "rustfmt", + }, }, formatFiletypes = { javascript = {"eslint"}, @@ -215,6 +218,7 @@ config.diagnosticls.setup { yaml = {"prettier"}, markdown = {"prettier"}, nix = {"nixfmt"}, + rust = {"rustfmt"}, html = {"prettier"}, css = {"stylelint"}, },