mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 13:40:05 +08:00
feat(format): add rustfmt
This commit is contained in:
parent
732401aee9
commit
d6bc345442
15
bundle/format.nvim/lua/format/ft/rust.lua
Normal file
15
bundle/format.nvim/lua/format/ft/rust.lua
Normal 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
|
Loading…
Reference in New Issue
Block a user