Skip to content

Commit

Permalink
docs: treesitter name_pattern can now have empty matching results
Browse files Browse the repository at this point in the history
  • Loading branch information
bekaboo committed Aug 28, 2023
1 parent 348a318 commit 32bc759
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
16 changes: 1 addition & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,4 @@
<h1 align='center'>
dropbar.nvim
</h1>

<p align='center'>
<b>IDE-like breadcrumbs, out of the box</b>
</p>

<p align='center'>
<img src=https://github.com/Bekaboo/dropbar.nvim/assets/76579810/28db72ab-d75c-46fe-8a9d-1f06b4440de9 width=500>
</p>

<p align='center'>
<h1
A polished, IDE-like, highly-customizable winbar for Neovim <br>
with drop-down menu support and mutiple backends
</p>
Expand Down Expand Up @@ -535,7 +523,6 @@ https://github.com/Bekaboo/dropbar.nvim/assets/76579810/e8c1ac26-0321-4762-9975-
},
treesitter = {
-- Lua pattern used to extract a short name from the node text
-- Be aware that the match result must not be nil!
name_pattern = '[#~%*%w%._%->!@:]+%s*'
.. string.rep('[#~%*%w%._%->!@:]*', 3, '%s*'),
-- The order matters! The first match is used as the type
Expand Down Expand Up @@ -1086,7 +1073,6 @@ each sources.

- `opts.sources.treesitter.name_pattern`: `string`
- Lua pattern used to extract a short name from the node text
- Be aware! The matching result must not be nil
- Default: `'[#~%*%w%._%->!@:]+%s*' .. string.rep('[#~%*%w%._%->!@:]*', 3, '%s*')`
- `opts.sources.treesitter.valid_types:` `string[]`
- A list of treesitter node types to include in the results
Expand Down
1 change: 0 additions & 1 deletion doc/dropbar.txt
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,6 @@ TREESITTER *dropbar-configuration-options-sources-treesitter*

- `opts.sources.treesitter.name_pattern`: `string`
- Lua pattern used to extract a short name from the node text
- Be aware! The matching result must not be nil
- Default: `'[#~%*%w%._%->!@:]+%s*' .. string.rep('[#~%*%w%._%->!@:]*', 3, '%s*')`
- `opts.sources.treesitter.valid_types:` `string[]`
- A list of treesitter node types to include in the results
Expand Down

0 comments on commit 32bc759

Please sign in to comment.