mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-04 18:50:05 +08:00
17 lines
259 B
Lua
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
|