Skip to content

Commit

Permalink
feat(integration): add dropbar.nvim (#499)
Browse files Browse the repository at this point in the history
  • Loading branch information
nullchilly authored Jun 3, 2023
1 parent c9cc5a9 commit e86aeb8
Show file tree
Hide file tree
Showing 6 changed files with 115 additions and 6 deletions.
18 changes: 16 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -317,14 +317,15 @@ Below is a list of supported plugins and their corresponding integration module.

| Plugin | Module |
| ------------------------------------------------------------------------------------- | ------------------- |
| [alpha-vim](https://github.com/goolord/alpha-nvim) | alpha |
| [aerial.nvim](https://github.com/stevearc/aerial.nvim) | aerial |
| [alpha-vim](https://github.com/goolord/alpha-nvim) | alpha |
| [barbar.nvim](https://github.com/romgrk/barbar.nvim) | barbar |
| [barbecue.nvim](https://github.com/utilyre/barbecue.nvim) | barbecue, Special |
| [beacon.nvim](https://github.com/DanilaMihailov/beacon.nvim) | beacon |
| [bufferline.nvim](https://github.com/akinsho/bufferline.nvim) | Special |
| [coc.nvim](https://github.com/neoclide/coc.nvim) | coc_nvim, Special |
| [dashboard-nvim](https://github.com/glepnir/dashboard-nvim) | dashboard |
| [dropbar.nvim](https://github.com/Bekaboo/dropbar.nvim) | dropbar, Special |
| [feline.nvim](https://github.com/feline-nvim/feline.nvim/) | Special |
| [fern.vim](https://github.com/lambdalisue/fern.vim) | fern |
| [fidget.nvim](https://github.com/j-hui/fidget.nvim) | Special |
Expand Down Expand Up @@ -355,8 +356,8 @@ Below is a list of supported plugins and their corresponding integration module.
| [nvim-tree.lua](https://github.com/kyazdani42/nvim-tree.lua) | nvimtree |
| [nvim-treesitter-context](https://github.com/nvim-treesitter/nvim-treesitter-context) | treesitter_context |
| [nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter) | treesitter |
| [nvim-ts-rainbow](https://github.com/p00f/nvim-ts-rainbow) | ts_rainbow |
| [nvim-ts-rainbow2](https://github.com/HiPhish/nvim-ts-rainbow2) | ts_rainbow2 |
| [nvim-ts-rainbow](https://github.com/p00f/nvim-ts-rainbow) | ts_rainbow |
| [octo.nvim](https://github.com/pwntester/octo.nvim) | octo |
| [overseer.nvim](https://github.com/stevearc/overseer.nvim) | overseer |
| [pounce.nvim](https://github.com/rlane/pounce.nvim) | pounce |
Expand Down Expand Up @@ -569,6 +570,19 @@ native_lsp = {
},
```

<details> <summary>dropbar.nvim</summary>

Setting `enabled` to `true` to enable this integration. `color_mode` to `true` will highlight kind's text instead of just kind's icon

```lua
dropbar = {
enabled = false,
color_mode = false,
},
```

</details>

</details>

<details> <summary>feline.nvim</summary>
Expand Down
22 changes: 18 additions & 4 deletions doc/catppuccin.txt
Original file line number Diff line number Diff line change
Expand Up @@ -348,10 +348,10 @@ module. (See Special integrations
-------------------------------------------------------------------------------
Plugin Module
---------------------------------------------------------- --------------------
alpha-vim alpha

aerial.nvim aerial

alpha-vim alpha

barbar.nvim barbar

barbecue.nvim barbecue, Special
Expand All @@ -364,6 +364,8 @@ module. (See Special integrations

dashboard-nvim dashboard

dropbar.nvim dropbar, Special

feline.nvim Special

fern.vim fern
Expand Down Expand Up @@ -424,10 +426,10 @@ module. (See Special integrations

nvim-treesitter treesitter

nvim-ts-rainbow ts_rainbow

nvim-ts-rainbow2 ts_rainbow2

nvim-ts-rainbow ts_rainbow

octo.nvim octo

overseer.nvim overseer
Expand Down Expand Up @@ -659,6 +661,18 @@ directly at the thing (e.g. an error)).
},
<

dropbar.nvim ~

Setting `enabled` to `true` to enable this integration. `color_mode` to `true`
will highlight kind’s text instead of just kind’s icon

>lua
dropbar = {
enabled = false,
color_mode = false,
},
<

feline.nvim ~

Update your Feline config to use the Catppuccin components:
Expand Down
66 changes: 66 additions & 0 deletions lua/catppuccin/groups/integrations/dropbar.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
local M = {}

function M.get()
local color = O.integrations.dropbar.color_mode
return {
DropBarIconUISeparator = { fg = C.overlay1 },
DropBarKindArray = color and { link = "DropBarIconKindArray" } or { fg = C.text },
DropBarKindBoolean = color and { link = "DropBarIconKindBoolean" } or { fg = C.text },
DropBarKindBreakStatement = color and { link = "DropBarIconKindBreakStatement" } or { fg = C.text },
DropBarKindCall = color and { link = "DropBarIconKindCall" } or { fg = C.text },
DropBarKindCaseStatement = color and { link = "DropBarIconKindCaseStatement" } or { fg = C.text },
DropBarKindClass = color and { link = "DropBarIconKindClass" } or { fg = C.text },
DropBarKindConstant = color and { link = "DropBarIconKindConstant" } or { fg = C.text },
DropBarKindConstructor = color and { link = "DropBarIconKindConstructor" } or { fg = C.text },
DropBarKindContinueStatement = color and { link = "DropBarIconKindContinueStatement" } or { fg = C.text },
DropBarKindDeclaration = color and { link = "DropBarIconKindDeclaration" } or { fg = C.text },
DropBarKindDelete = color and { link = "DropBarIconKindDelete" } or { fg = C.text },
DropBarKindDoStatement = color and { link = "DropBarIconKindDoStatement" } or { fg = C.text },
DropBarKindElseStatement = color and { link = "DropBarIconKindElseStatement" } or { fg = C.text },
DropBarKindEnum = color and { link = "DropBarIconKindEnum" } or { fg = C.text },
DropBarKindEnumMember = color and { link = "DropBarIconKindEnumMember" } or { fg = C.text },
DropBarKindEvent = color and { link = "DropBarIconKindEvent" } or { fg = C.text },
DropBarKindField = color and { link = "DropBarIconKindField" } or { fg = C.text },
DropBarKindFile = color and { link = "DropBarIconKindFile" } or { fg = C.text },
DropBarKindFolder = color and { link = "DropBarIconKindFolder" } or { fg = C.text },
DropBarKindForStatement = color and { link = "DropBarIconKindForStatement" } or { fg = C.text },
DropBarKindFunction = color and { link = "DropBarIconKindFunction" } or { fg = C.text },
DropBarKindIdentifier = color and { link = "DropBarIconKindIdentifier" } or { fg = C.text },
DropBarKindIfStatement = color and { link = "DropBarIconKindIfStatement" } or { fg = C.text },
DropBarKindInterface = color and { link = "DropBarIconKindInterface" } or { fg = C.text },
DropBarKindKeyword = color and { link = "DropBarKindIconKeyword" } or { fg = C.text },
DropBarKindList = color and { link = "DropBarIconKindList" } or { fg = C.text },
DropBarKindMacro = color and { link = "DropBarIconKindMacro" } or { fg = C.text },
DropBarKindMarkdownH1 = color and { link = "DropBarIconKindMarkdownH1" } or { fg = C.text },
DropBarKindMarkdownH2 = color and { link = "DropBarIconKindMarkdownH2" } or { fg = C.text },
DropBarKindMarkdownH3 = color and { link = "DropBarIconKindMarkdownH3" } or { fg = C.text },
DropBarKindMarkdownH4 = color and { link = "DropBarIconKindMarkdownH4" } or { fg = C.text },
DropBarKindMarkdownH5 = color and { link = "DropBarIconKindMarkdownH5" } or { fg = C.text },
DropBarKindMarkdownH6 = color and { link = "DropBarIconKindMarkdownH6" } or { fg = C.text },
DropBarKindMethod = color and { link = "DropBarIconKindMethod" } or { fg = C.text },
DropBarKindModule = color and { link = "DropBarIconKindModule" } or { fg = C.text },
DropBarKindNamespace = color and { link = "DropBarIconKindNamespace" } or { fg = C.text },
DropBarKindNull = color and { link = "DropBarIconKindNull" } or { fg = C.text },
DropBarKindNumber = color and { link = "DropBarIconKindNumber" } or { fg = C.text },
DropBarKindObject = color and { link = "DropBarIconKindObject" } or { fg = C.text },
DropBarKindOperator = color and { link = "DropBarIconKindOperator" } or { fg = C.text },
DropBarKindPackage = color and { link = "DropBarIconKindPackage" } or { fg = C.text },
DropBarKindProperty = color and { link = "DropBarIconKindProperty" } or { fg = C.text },
DropBarKindReference = color and { link = "DropBarIconKindReference" } or { fg = C.text },
DropBarKindRepeat = color and { link = "DropBarIconKindRepeat" } or { fg = C.text },
DropBarKindScope = color and { link = "DropBarIconKindScope" } or { fg = C.text },
DropBarKindSpecifier = color and { link = "DropBarIconKindSpecifier" } or { fg = C.text },
DropBarKindStatement = color and { link = "DropBarIconKindStatement" } or { fg = C.text },
DropBarKindString = color and { link = "DropBarIconKindString" } or { fg = C.text },
DropBarKindStruct = color and { link = "DropBarIconKindStruct" } or { fg = C.text },
DropBarKindSwitchStatement = color and { link = "DropBarIconKindSwitchStatement" } or { fg = C.text },
DropBarKindType = color and { link = "DropBarIconKindType" } or { fg = C.text },
DropBarKindTypeParameter = color and { link = "DropBarIconKindTypeParameter" } or { fg = C.text },
DropBarKindUnit = color and { link = "DropBarIconKindUnit" } or { fg = C.text },
DropBarKindValue = color and { link = "DropBarIconKindValue" } or { fg = C.text },
DropBarKindVariable = color and { link = "DropBarIconKindVariable" } or { fg = C.text },
DropBarKindWhileStatement = color and { link = "DropBarIconKindWhileStatement" } or { fg = C.text },
}
end

return M
1 change: 1 addition & 0 deletions lua/catppuccin/groups/syntax.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ function M.get()
Label = { fg = C.sapphire }, -- case, default, etc.
Operator = { fg = C.sky, style = O.styles.operators or {} }, -- "sizeof", "+", "*", etc.
Keyword = { fg = C.mauve, style = O.styles.keywords or {} }, -- any other keyword
Array = { fg = C.lavender },
-- Exception = { }, -- try, catch, throw

PreProc = { fg = C.pink }, -- (preferred) generic Preprocessor
Expand Down
4 changes: 4 additions & 0 deletions lua/catppuccin/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ local M = {
enabled = false,
custom_bg = "NONE",
},
dropbar = {
enabled = false,
color_mode = false,
},
},
color_overrides = {},
highlight_overrides = {},
Expand Down
10 changes: 10 additions & 0 deletions vim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,16 @@ globals:
type: string
property: read-only

O.integrations.dropbar:
type: table
property: read-only
O.integrations.dropbar.enabled:
type: bool
property: read-only
O.integrations.dropbar.color_mode:
type: bool
property: read-only

O.color_overrides:
type: table
property: read-only
Expand Down

0 comments on commit e86aeb8

Please sign in to comment.