pandysong / ghost-text.vim

support for ghost-text in regular vim
MIT License
34 stars 4 forks source link

Auto set ft #7

Open Yemeen opened 3 years ago

Yemeen commented 3 years ago

Would adding something similar to this

function! s:SetupGhostBuffer()
    if match(expand("%:a"), '\v/ghost-(github|reddit)\.com-')
        set ft=markdown
    endif
endfunction

work for this plugin? I found this in another ghost text plugin.