diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2024-09-11 03:01:48 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-11 03:01:48 -0700 |
commit | a30afeeb85176b83f3f540851218165e5d9c4c47 (patch) | |
tree | 75385f569bef6f7ddaea6ee527b59f074e504b0b /runtime/lua/vim/health.lua | |
parent | 8501fe621a911c610c1876f2de610734f478a189 (diff) | |
parent | 7b680e0ca995cacadd9e7c8cb13d5f6ef203694a (diff) | |
download | rneovim-a30afeeb85176b83f3f540851218165e5d9c4c47.tar.gz rneovim-a30afeeb85176b83f3f540851218165e5d9c4c47.tar.bz2 rneovim-a30afeeb85176b83f3f540851218165e5d9c4c47.zip |
Merge #30342 :checkhealth completion
Diffstat (limited to 'runtime/lua/vim/health.lua')
-rw-r--r-- | runtime/lua/vim/health.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/lua/vim/health.lua b/runtime/lua/vim/health.lua index d183c82516..f260d44b50 100644 --- a/runtime/lua/vim/health.lua +++ b/runtime/lua/vim/health.lua @@ -285,8 +285,8 @@ local path2name = function(path) -- Remove everything up to the last /lua/ folder path = path:gsub('^.*/lua/', '') - -- Remove the filename (health.lua) - path = vim.fs.dirname(path) + -- Remove the filename (health.lua) or (health/init.lua) + path = vim.fs.dirname(path:gsub('/init%.lua$', '')) -- Change slashes to dots path = path:gsub('/', '.') |