-
-
Notifications
You must be signed in to change notification settings - Fork 54
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Is your feature request related to a problem? Please describe.
I can't get this plugin to work with ahmedkalf/project.nvim. When I change project using its selector, the buffer list doesn't get cleared, and I still see buffers from the previous project bleeding into the new one.
Describe the solution you'd like
I'd like to have an example setup function that shows how to make the two plugins work together.
Describe alternatives you've considered
I tried my best but couldn't get it working.
Additional context
I'm setting up the two plugins as follows:
-- in init.lua
use({
"rmagatti/auto-session",
config = function()
require("auto-session").setup({
log_level = "error",
auto_session_suppress_dirs = { "~/", "~/Projects", "~/Downloads", "/" },
})
end,
})
use("ahmedkhalf/project.nvim")
-- in another sourced file
local status_ok, project = pcall(require, "project_nvim")
if not status_ok then
return
end
project.setup({
active = true,
on_config_done = nil,
manual_mode = false,
detection_methods = { "pattern" },
patterns = { ".git", "_darcs", ".hg", ".bzr", ".svn", "Makefile", "package.json" },
show_hidden = false,
silent_chdir = true,
ignore_lsp = {},
})
local tele_status_ok, telescope = pcall(require, "telescope")
if not tele_status_ok then
return
end
telescope.load_extension("projects")
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request