From: Phạm Bình An Date: Tue, 6 May 2025 16:08:38 +0000 (+0200) Subject: runtime(lua): update 'path' option in filetype plugin X-Git-Tag: v9.1.1366~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0fb6ceac4ce6c2360a1c45d41ca72779af9f6b2f;p=thirdparty%2Fvim.git runtime(lua): update 'path' option in filetype plugin Problem: Lua doesn't support importing module in path related to current file like JS does (https://www.reddit.com/r/lua/comments/wi0bau/whats_the_correct_way_to_run_a_lua_file_that_uses/) Solution: Remove `.` from Lua buffer-local option `'path'` closes: #17267 Signed-off-by: Phạm Bình An Signed-off-by: Christian Brabandt --- diff --git a/runtime/ftplugin/lua.vim b/runtime/ftplugin/lua.vim index 33471cc64e..e3bb3a5ddf 100644 --- a/runtime/ftplugin/lua.vim +++ b/runtime/ftplugin/lua.vim @@ -9,6 +9,7 @@ " Phạm Bình An " @konfekt " Last Change: 2025 Apr 04 +" 2025 May 06 by Vim Project update 'path' setting #17267 if exists("b:did_ftplugin") finish @@ -31,6 +32,7 @@ set cpo&vim setlocal comments=:---,:-- setlocal commentstring=--\ %s setlocal formatoptions-=t formatoptions+=croql +setlocal path-=. " Lua doesn't support importing module in path related to current file like JS let &l:define = '\