tiny refactor in ftplugin