From 72877bb17d70362f91a60b31bf0244dbf8ed58ae Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Thu, 7 Jul 2022 18:53:47 +0200 Subject: 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.) --- runtime/scripts.vim | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'runtime/scripts.vim') diff --git a/runtime/scripts.vim b/runtime/scripts.vim index a129c3467e..2d8bfdcb05 100644 --- a/runtime/scripts.vim +++ b/runtime/scripts.vim @@ -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 -- cgit