Skip to content

Commit

Permalink
fix: path
Browse files Browse the repository at this point in the history
  • Loading branch information
phanen committed Mar 29, 2024
1 parent 6ab60cf commit 6e287fe
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
9 changes: 8 additions & 1 deletion lua/fzf-lua-overlay/providers/plugins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,14 @@ return {
return
end
local name = selected[1]
require('util').chdir(lazy_cfg.plugins[name].dir)
require('fzf-lua-overlay.util').chdir(lazy_cfg.plugins[name].dir)
end,
['ctrl-o'] = function(selected)
if not selected or not selected[1] then
return
end
local name = selected[1]
vim.ui.open(lazy_cfg.plugins[name].dir)
end,
},
},
Expand Down
3 changes: 1 addition & 2 deletions lua/fzf-lua-overlay/providers/rtp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ return {
return
end
local path = selected[1]
vim.system { 'zoxide', 'add', path }
vim.api.nvim_set_current_dir(path)
require('fzf-lua-overlay.util').chdir(path)
end,
},
},
Expand Down
2 changes: 1 addition & 1 deletion lua/fzf-lua-overlay/providers/zoxide.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ return {
return
end
local path = selected[1]:match '/.+'
require('util').chdir(path)
require('fzf-lua-overlay.util').chdir(path)
end,
},
},
Expand Down

0 comments on commit 6e287fe

Please sign in to comment.