ziglang / zig.vim

Vim configuration for Zig
MIT License
448 stars 56 forks source link

Use setfiletype instead of set filetype #75

Closed gpanders closed 2 years ago

gpanders commented 2 years ago

The :setfiletype command will not change the buffer's filetype if it is already set, which prevents the FileType being set twice (which in turns fires all FileType autocommands twice).