vim-polyglot
vim-polyglot copied to clipboard
[filetype.lua] Incompatible with neovim filetype.lua
Does this bug happen when you install plugin without vim-polyglot?
Describe the bug:
When polyglot.vim enabled, the neovim filetype.lua not worked. May related with filetypedetect autogroup.
To Reproduce:
Does anyone know of a workaround for this or should I just use treesitter?
Could disable polyplot filetype detect via:
let g:polyglot_disabled = [
\ 'ftdetect',
\ ]
This didn't work for me.
Ok, I think I found a way. The ftdetect doesn't need to be disabled. Only the variable g:did_load_filetypes needs to be removed after vim-polyglot is loaded:
call plug#begin()
Plug 'sheerun/vim-polyglot'
call plug#end()
unlet g:did_load_filetypes
I don't know what other consequences this might have.