cespare / vim-toml

Vim syntax for TOML
MIT License
625 stars 40 forks source link

Filetype not being detected (Cargo.toml, rust.vim) #50

Closed twe4ked closed 4 years ago

twe4ked commented 4 years ago

I ran into the same issue in #48, an older version of rust.vim was overriding the filetype setting. Updating the plugin fixed the issue.

I saw that rust.vim used to set filetype=cfg for its Cargo.toml file. (This is supposed to give a slightly better syntax than whatever vim's default if the user doesn't have any special toml handling.) In March rust.vim fixed their ftdetect to use the setf FALLBACK mechanism for this purpose. – https://github.com/cespare/vim-toml/issues/48#issuecomment-564722096

It took my a few mins to find an existing issue so I thought I'd create this so hopefully others can find it more easily.

cespare commented 4 years ago

Thanks for the SEO :)