Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore Neovim 0.9.5 compatibility #18

Merged
merged 1 commit into from
Feb 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lua/pckr/fsstate.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ local function get_dir_plugins(dir)
for name, ty in vim.fs.dir(dir) do
if ty ~= 'file' then
local path = util.join_paths(dir, name)
if vim.uv.fs_stat(path) then
if uv.fs_stat(path) then
plugins[path] = name
end
end
Expand Down
7 changes: 5 additions & 2 deletions lua/pckr/plugin_types/local.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
local a = require('pckr.async')
local log = require('pckr.log')
local util = require('pckr.util')

local uv = vim.loop

--- @class Pckr.PluginHandler.Local: Pckr.PluginHandler
local M = {}
Expand All @@ -14,8 +17,8 @@ end
--- @param disp Pckr.Display
--- @return string?
M.updater = a.sync(function(plugin, disp)
local gitdir = vim.fs.joinpath(plugin.install_path, '.git')
if vim.uv.fs_stat(gitdir) then
local gitdir = util.join_paths(plugin.install_path, '.git')
if uv.fs_stat(gitdir) then
return require('pckr.plugin_types.git').updater(plugin, disp, true)
end
-- Nothing to do
Expand Down
Loading