1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 17:40:06 +08:00

feat(format): add rustfmt

This commit is contained in:
Eric Wong 2024-04-18 21:28:35 +08:00
parent 732401aee9
commit d6bc345442
2 changed files with 84 additions and 69 deletions

View File

@ -0,0 +1,15 @@
local M = {}
function M.enabled()
return { 'rustfmt' }
end
function M.rustfmt(opt)
return {
exe = 'rustfmt',
args = {},
stdin = true,
}
end
return M