+
Skip to content

[FEATURE] Document how to get this working with ahmedkalf/project.nvim #164

@metalelf0

Description

@metalelf0

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 request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载