From fb59188b6d828066e4d4d0e18badb47bc400d9f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ph=E1=BA=A1m=20B=C3=ACnh=20An?= <111893501+brianhuster@users.noreply.github.com> Date: Wed, 7 May 2025 08:02:06 +0700 Subject: [PATCH] vim-patch:0fb6cea: runtime(lua): update 'path' option in filetype plugin #33876 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: vim/vim#17267 https://github.com/vim/vim/commit/0fb6ceac4ce6c2360a1c45d41ca72779af9f6b2f --- runtime/ftplugin/lua.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/runtime/ftplugin/lua.vim b/runtime/ftplugin/lua.vim index 47e7eb1796..c6d2af8d37 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 = '\