mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
fix(project.nvim): correctly delete projects
This commit is contained in:
parent
13a4a84e34
commit
e6d52cb779
1 changed files with 9 additions and 0 deletions
|
|
@ -91,6 +91,15 @@ return {
|
|||
event = "VeryLazy",
|
||||
config = function(_, opts)
|
||||
require("project_nvim").setup(opts)
|
||||
local history = require("project_nvim.utils.history")
|
||||
history.delete_project = function(project)
|
||||
for k, v in pairs(history.recent_projects) do
|
||||
if v == project.value then
|
||||
history.recent_projects[k] = nil
|
||||
return
|
||||
end
|
||||
end
|
||||
end
|
||||
LazyVim.on_load("telescope.nvim", function()
|
||||
require("telescope").load_extension("projects")
|
||||
end)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue