aboutsummaryrefslogtreecommitdiff
path: root/runtime/filetype.vim
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2022-07-07 18:53:47 +0200
committerGitHub <noreply@github.com>2022-07-07 18:53:47 +0200
commit72877bb17d70362f91a60b31bf0244dbf8ed58ae (patch)
tree88076380195582a7c8e4a886691c77bd52aa4e1d /runtime/filetype.vim
parent0950275b8c8dff37cf08aae0680a248f8e963497 (diff)
downloadrneovim-72877bb17d70362f91a60b31bf0244dbf8ed58ae.tar.gz
rneovim-72877bb17d70362f91a60b31bf0244dbf8ed58ae.tar.bz2
rneovim-72877bb17d70362f91a60b31bf0244dbf8ed58ae.zip
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.)
Diffstat (limited to 'runtime/filetype.vim')
-rw-r--r--runtime/filetype.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index 44a3567983..7469f86cf5 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -3,6 +3,11 @@
" Maintainer: Bram Moolenaar <Bram@vim.org>
" Last Change: 2022 Jul 5
+" Only run this if enabled
+if !exists("do_legacy_filetype")
+ finish
+endif
+
" Listen very carefully, I will say this only once
if exists("did_load_filetypes")
finish