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(integration): add dropbar.nvim #499

Merged
merged 5 commits into from
Jun 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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