1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-14 05:37:57 +08:00
SpaceVim/bundle/format.nvim/lua/format/ft/markdown.lua

17 lines
259 B
Lua
Raw Normal View History

local M = {}
function M.enabled()
return { 'prettier' }
end
function M.prettier(opt)
2024-04-16 11:27:49 +08:00
return {
exe = vim.fn.exepath('prettier'),
name = 'prettier',
args = {'--stdin-filepath', opt.filepath},
2024-04-16 11:27:49 +08:00
stdin = true
}
end
return M