mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
feat(runtime)!: enable filetype.lua by default (#19216)
* revert to filetype.vim by setting `g:do_legacy_filetype` * skip either filetype.lua or filetype.vim via `g:did_load_filetypes` (Running both is no longer required and therefore no longer supported.)
This commit is contained in:
@@ -11,9 +11,13 @@
|
||||
" 'ignorecase' option making a difference. Where case is to be ignored use
|
||||
" =~? instead. Do not use =~ anywhere.
|
||||
|
||||
" Only do the rest when not using Lua filetype detection
|
||||
" and the FileType autocommand has not been triggered yet.
|
||||
if exists("g:do_filetype_lua") && g:do_filetype_lua || did_filetype()
|
||||
" Only run when using legacy filetype
|
||||
if !exists('g:do_legacy_filetype')
|
||||
finish
|
||||
endif
|
||||
|
||||
" Only do the rest when the FileType autocommand has not been triggered yet.
|
||||
if did_filetype()
|
||||
finish
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user