add yaml module completion; add plugin enable state check, optimize imports