Skip to content

Conversation

@wsdjeg
Copy link
Contributor

@wsdjeg wsdjeg commented Oct 18, 2025

can not disable nvim-cmp in nvimtree filter buffer, with this PR:

cmp.setup({
    enabled = function()
        if vim.bo.filetype == 'NvimTreeFilter'  then
            return false
        end
        return true
    end
    ----
})

Copy link
Member

@alex-courtis alex-courtis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works nicely for 0.11 and 0.10, many thanks!

Please

@wsdjeg
Copy link
Contributor Author

wsdjeg commented Oct 19, 2025

@alex-courtis thank, changes have been done.

@wsdjeg wsdjeg force-pushed the nvim-tree-filter-ft branch from 40bb3b6 to 7d8e4dd Compare October 19, 2025 07:23
Copy link
Member

@alex-courtis alex-courtis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Many thanks for your contribution!

@alex-courtis alex-courtis changed the title feat: add NvimTreeFilter filetype feat: set filter input filetype to NvimTreeFilter Oct 20, 2025
@alex-courtis alex-courtis enabled auto-merge (squash) October 20, 2025 00:49
@alex-courtis alex-courtis merged commit 64e2192 into nvim-tree:master Oct 20, 2025
5 checks passed
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

Successfully merging this pull request may close these issues.

2 participants