mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
fix(util.project): migrate to maintained project.nvim fork
Switch from unmaintained ahmedkhalf/project.nvim to actively maintained DrKJeff16/project.nvim fork. Update require paths to match the new module structure: - project_nvim -> project - project_nvim.project -> project.api - project_nvim.utils.history -> project.utils.history Closes #6867
This commit is contained in:
parent
c64a61734f
commit
5e57961948
1 changed files with 5 additions and 5 deletions
|
|
@ -5,8 +5,8 @@ pick = function()
|
||||||
return vim.cmd("Telescope projects")
|
return vim.cmd("Telescope projects")
|
||||||
elseif LazyVim.pick.picker.name == "fzf" then
|
elseif LazyVim.pick.picker.name == "fzf" then
|
||||||
local fzf_lua = require("fzf-lua")
|
local fzf_lua = require("fzf-lua")
|
||||||
local project = require("project_nvim.project")
|
local project = require("project.api")
|
||||||
local history = require("project_nvim.utils.history")
|
local history = require("project.utils.history")
|
||||||
local results = history.get_recent_projects()
|
local results = history.get_recent_projects()
|
||||||
local utils = require("fzf-lua.utils")
|
local utils = require("fzf-lua.utils")
|
||||||
|
|
||||||
|
|
@ -84,14 +84,14 @@ end
|
||||||
|
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"ahmedkhalf/project.nvim",
|
"DrKJeff16/project.nvim",
|
||||||
opts = {
|
opts = {
|
||||||
manual_mode = true,
|
manual_mode = true,
|
||||||
},
|
},
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
config = function(_, opts)
|
config = function(_, opts)
|
||||||
require("project_nvim").setup(opts)
|
require("project").setup(opts)
|
||||||
local history = require("project_nvim.utils.history")
|
local history = require("project.utils.history")
|
||||||
history.delete_project = function(project)
|
history.delete_project = function(project)
|
||||||
for k, v in pairs(history.recent_projects) do
|
for k, v in pairs(history.recent_projects) do
|
||||||
if v == project.value then
|
if v == project.value then
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue