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

17 lines
259 B
Lua

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