nathom / filetype.nvim

A faster version of filetype.vim
560 stars 35 forks source link

Fix Not an editor command: dist#ft#SetFileTypeSH("bash") #76

Closed ichigozero closed 2 years ago

ichigozero commented 2 years ago

I found that adding call command fixes the #68 issue.

However, I don't really understand why call commands are used for codes before line 532 and codes after line 532 don't have call commands.

Only %.bash[_-]profile, %.bash[_-]logout, %.bash[_-]aliases, %.bash%-fc[_-] need to have call commands added , while the rest works without any issues.

I also found that the plugin does not detect .bash-fc_. Escaping the dash - inside %.bash-fc[_-] string seems fixes the issue.

nathom commented 2 years ago

You're right, they should all have calls. Thanks.