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

feat(beta): use ts highlights in main fzf win #1551

Merged
merged 1 commit into from
Dec 6, 2024
Merged

Conversation

ibhagwan
Copy link
Owner

@ibhagwan ibhagwan commented Dec 6, 2024

Feedback appreciated: #1485

Will only work with file-like entries, e.g. grep_xxx, blines, etc:

  file:line:col:text   (grep_xxx)
  file:line:text       (grep_project or missing "--column" flag)
  line:col:text        (grep_curbuf)
  line:text            (blines)

Enable globally via setup:

require("fzf-lua").setup({ winopts = { treesitter = true } })

Or call individually per picker:

:FzfLua blines winopts.treesitter=true

or

:lua require("fzf-lua").blines({ winopts = { treesitter = true } })

Will only work with file-like entries, e.g. grep_xxx, blines, etc:
```
  file:line:col:text   (grep_xxx)
  file:line:text       (grep_project or missing "--column" flag)
  line:col:text        (grep_curbuf)
  line:text            (blines)
```

Enable globally via `setup`:
```lua
require("fzf-lua").setup({ winopts = { treesitter = true } })
```

Or call individually per picker:
```vim
:FzfLua blines winopts.treesitter=true
```
or
```lua
:lua require("fzf-lua").blines({ winopts = { treesitter = true } })
```

Feedback appreciated: #1485
@ibhagwan ibhagwan merged commit 14e8ac0 into main Dec 6, 2024
1 check passed
@ibhagwan ibhagwan deleted the 1485_treesitter branch December 6, 2024 05:51
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.

1 participant