Skip to content

Commit

Permalink
feat(sources): treesitter: add json pair to valid treesitter types
Browse files Browse the repository at this point in the history
  • Loading branch information
bekaboo committed Jul 4, 2023
1 parent c25bef8 commit 5c8bd1a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,7 @@ https://github.com/Bekaboo/dropbar.nvim/assets/76579810/e8c1ac26-0321-4762-9975-
'number',
'operator',
'package',
'pair',
'property',
'reference',
'repeat',
Expand Down Expand Up @@ -712,6 +713,7 @@ used by the plugin:
Object = '󰅩 ',
Operator = '󰆕 ',
Package = '󰆦 ',
Pair = '󰅪 ',
Property = '',
Reference = '󰦾 ',
Regex = '',
Expand Down Expand Up @@ -1200,6 +1202,7 @@ should be self-explanatory:
| DropBarIconKindObject | `{ link = 'Statement' }` |
| DropBarIconKindOperator | `{ link = 'Operator' }` |
| DropBarIconKindPackage | `{ link = 'CmpItemKindModule' }` |
| DropBarIconKindPair | `{ link = 'String' }` |
| DropBarIconKindProperty | `{ link = 'CmpItemKindProperty' }` |
| DropBarIconKindReference | `{ link = 'CmpItemKindReference' }` |
| DropBarIconKindRepeat | `{ link = 'Repeat' }` |
Expand Down
3 changes: 3 additions & 0 deletions doc/dropbar.txt
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ by the plugin:
Object = '󰅩 ',
Operator = '󰆕 ',
Package = '󰆦 ',
Pair = '󰅪 ',
Property = ' ',
Reference = '󰦾 ',
Regex = ' ',
Expand Down Expand Up @@ -651,6 +652,7 @@ TREESITTER *dropbar-configuration-options-sources-treesitter*
'number',
'operator',
'package',
'pair',
'property',
'reference',
'repeat',
Expand Down Expand Up @@ -825,6 +827,7 @@ Highlight groups ~
DropBarIconKindObject `{ link = 'Statement' }`
DropBarIconKindOperator `{ link = 'Operator' }`
DropBarIconKindPackage `{ link = 'CmpItemKindModule' }`
DropBarIconPair `{ link = 'String' }`
DropBarIconKindProperty `{ link = 'CmpItemKindProperty' }`
DropBarIconKindReference `{ link = 'CmpItemKindReference' }`
DropBarIconKindRepeat `{ link = 'Repeat' }`
Expand Down
2 changes: 2 additions & 0 deletions lua/dropbar/configs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ M.opts = {
Object = '󰅩 ',
Operator = '󰆕 ',
Package = '󰆦 ',
Pair = '󰅪 ',
Property = '',
Reference = '󰦾 ',
Regex = '',
Expand Down Expand Up @@ -365,6 +366,7 @@ M.opts = {
'number',
'operator',
'package',
'pair',
'property',
'reference',
'repeat',
Expand Down
1 change: 1 addition & 0 deletions lua/dropbar/hlgroups.lua
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ local hlgroups = {
DropBarIconKindObject = { link = 'Statement' },
DropBarIconKindOperator = { link = 'Operator' },
DropBarIconKindPackage = { link = 'CmpItemKindModule' },
DropBarIconKindPair = { link = 'String' },
DropBarIconKindProperty = { link = 'CmpItemKindProperty' },
DropBarIconKindReference = { link = 'CmpItemKindReference' },
DropBarIconKindRepeat = { link = 'Repeat' },
Expand Down

0 comments on commit 5c8bd1a

Please sign in to comment.