aboutsummaryrefslogtreecommitdiff
path: root/runtime/scripts.vim
diff options
context:
space:
mode:
authorJonas Strittmatter <40792180+smjonas@users.noreply.github.com>2022-07-03 15:31:56 +0200
committerGitHub <noreply@github.com>2022-07-03 15:31:56 +0200
commitacb7a902812a064fced5ef7d389bd94cb45764bb (patch)
tree0e3a40a07f8223e1144e0d2e7d61810b0711a718 /runtime/scripts.vim
parent0313aba77a447558c3b373370b60eb78067e1c4d (diff)
downloadrneovim-acb7a902812a064fced5ef7d389bd94cb45764bb.tar.gz
rneovim-acb7a902812a064fced5ef7d389bd94cb45764bb.tar.bz2
rneovim-acb7a902812a064fced5ef7d389bd94cb45764bb.zip
refactor(runtime): port scripts.vim to lua (#18710)
Diffstat (limited to 'runtime/scripts.vim')
-rw-r--r--runtime/scripts.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/scripts.vim b/runtime/scripts.vim
index 36763a4a82..49e9e259a2 100644
--- a/runtime/scripts.vim
+++ b/runtime/scripts.vim
@@ -11,9 +11,9 @@
" 'ignorecase' option making a difference. Where case is to be ignored use
" =~? instead. Do not use =~ anywhere.
-
-" Only do the rest when the FileType autocommand has not been triggered yet.
-if did_filetype()
+" 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()
finish
endif