Commit 5eb0783
committed
feat(live_grep): enable treesitter (closes #2511)
Disabled by default, enable with `_treesitter=true`:
```lua
:FzfLua live_grep _treesitter=true
-- or
:lua FzfLua.live_grep({ _treesitter = true })
```
or permanently via setup under grep:
```lua
require("fzf-lua").setup({
grep = {
_treesitter = true,
-- recommended to use with "--colors match:style:underline"
rg_opts = "--column --line-number --no-heading --color=always --smart-case "
.. "--max-columns=4096 --colors match:style:underline -e"
}
})
```1 parent 506a508 commit 5eb0783
2 files changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
786 | 786 | | |
787 | 787 | | |
788 | 788 | | |
789 | | - | |
| 789 | + | |
790 | 790 | | |
791 | 791 | | |
792 | 792 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | 63 | | |
69 | 64 | | |
70 | 65 | | |
71 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
0 commit comments