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

Support highlight for CtrlP with devicons #61

Merged
merged 1 commit into from
Mar 6, 2024

Conversation

phongnh
Copy link
Contributor

@phongnh phongnh commented Mar 6, 2024

Hi,

When I use CtrlP with devicons, cpsm's regex highlight does not work. Tried to add regex to support both cases with and without Devicons at beginging of each line.

Here is my test case:

image
>  zero/nvim/plugins/ctrlp.lua
> zero/nvim/plugins/ctrlp.lua
>  zero/vim/plugins/ctrlp.vim
call matchadd('CtrlPMatch', '\V\C\^> \%\(\.\+\s\+\)\?zero/nvim/plugins/\zsctrlp\ze.lua\$')

I think this will make matching slow down a bit. Please merge it if you think it does make senses, thanks.

@nixprime
Copy link
Owner

nixprime commented Mar 6, 2024

Thanks for the contribution!

@nixprime nixprime merged commit 1a5fc1b into nixprime:master Mar 6, 2024
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