1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-04 17:40:04 +08:00
SpaceVim/bundle/format.nvim/lua/format/ft/json.lua
2024-04-16 13:54:12 +08:00

16 lines
238 B
Lua

local M = {}
function M.enabled()
return {'prettier'}
end
function M.prettier(opt)
return {
exe = 'prettier',
args = {'--stdin-filepath', opt.filepath},
stdin = true,
}
end
return M