]> git.ipfire.org Git - thirdparty/vim.git/commit
runtime(lua): update 'path' option in filetype plugin
authorPhạm Bình An <phambinhanctb2004@gmail.com>
Tue, 6 May 2025 16:08:38 +0000 (18:08 +0200)
committerChristian Brabandt <cb@256bit.org>
Tue, 6 May 2025 16:08:38 +0000 (18:08 +0200)
commit0fb6ceac4ce6c2360a1c45d41ca72779af9f6b2f
treecfaf4fcf34788822a8858cc99e78b42e75daeefd
parent87947a9a769ad43216beae7946c8b0bda9f8024a
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 <phambinhanctb2004@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/ftplugin/lua.vim