Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nvim tree sync not working #137

Open
TakenMC opened this issue Jun 20, 2023 · 0 comments
Open

Nvim tree sync not working #137

TakenMC opened this issue Jun 20, 2023 · 0 comments

Comments

@TakenMC
Copy link

TakenMC commented Jun 20, 2023

local telescope_setup, telescope = pcall(require, 'telescope')
if not telescope_setup then
    return
end

local builtin_setup, builtin = pcall(require, 'telescope.builtin')
if not builtin_setup then
    return
end

telescope.load_extension('file_browser')
telescope.load_extension('project')

local findProject = require'telescope'.extensions.project.project
local fileBrowser = require'telescope'.extensions.file_browser.file_browser

telescope.setup {
    extensions = {
        project = {
            sync_with_nvim_tree = true,
            on_project_selected = function()
                require("nvim-tree.api").tree.change_root(vim.fn.getcwd())
            end
        },
        file_browser = {
            hidden = {
                file_browser = false,
                folder_browser = false
            }
        }
    }
}

Here is the lua config
Nvim version 0.9.0
OS: Win 11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant