Open pbnj-dragon opened 2 months ago
Does this bug happen when you install plugin without vim-polyglot?
N/A
Describe the bug:
When opening go.mod files, vim-polyglot sets the filetype as modula2
go.mod
modula2
This is likely because file pattern for modula2 is *.MOD, which matches go.mod first before before the go.mod has a chance to be evaluated.
*.MOD
To Reproduce:
$ vim go.mod
Inside vim:
:verbose set ft?
For me modula2 seems more obscure than golang, so:
let g:polyglot_disabled = ['modula2']
works well for me.
Does this bug happen when you install plugin without vim-polyglot?
N/A
Describe the bug:
When opening
go.mod
files, vim-polyglot sets the filetype asmodula2
This is likely because file pattern for modula2 is
*.MOD
, which matchesgo.mod
first before before thego.mod
has a chance to be evaluated.To Reproduce:
Inside vim: