Skip to content

Commit

Permalink
feat: add vim-dadbod-ui integration (#747)
Browse files Browse the repository at this point in the history
* Add dadbod-ui

* Address review cmts

* Address second review cmt
  • Loading branch information
vihu authored Aug 9, 2024
1 parent 548b2a2 commit 4db4c77
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 5 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1468,6 +1468,20 @@ let g:clap_theme = 'catppuccin'
</tr>
<!-- vim-clap -->

<!-- vim-dadbod-ui -->
</tr>
<tr>
<td> <a href="https://github.com/kristijanhusak/vim-dadbod-ui">vim-dadbod-ui</a> </td>
<td>

```lua
dadbod_ui = false
```

</td>
</tr>
<!-- vim-dadbod-ui -->

<!-- vim-gitgutter -->
</tr>
<tr>
Expand Down
14 changes: 9 additions & 5 deletions doc/catppuccin.txt
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ options and settings.
-- For more plugins integrations please scroll down (https://github.com/catppuccin/nvim#integrations)
},
})

-- setup must be called before loading
vim.cmd.colorscheme "catppuccin"
<
Expand Down Expand Up @@ -388,6 +388,10 @@ colorful-winsep.nvim>lua
}
<

dadbod-ui>lua
dadbod_ui = false
<

dashboard-nvim>lua
dashboard = true
<
Expand All @@ -409,9 +413,9 @@ Update your Feline config to use the Catppuccin components:

>lua
local ctp_feline = require('catppuccin.groups.integrations.feline')

ctp_feline.setup()

require("feline").setup({
components = ctp_feline.get(),
})
Expand All @@ -426,7 +430,7 @@ Here are the defaults:
local clrs = require("catppuccin.palettes").get_palette()
local ctp_feline = require('catppuccin.groups.integrations.feline')
local U = require "catppuccin.utils.colors"

ctp_feline.setup({
assets = {
left_separator = "",
Expand Down Expand Up @@ -676,7 +680,7 @@ Special ~

>lua
local sign = vim.fn.sign_define

sign("DapBreakpoint", { text = "●", texthl = "DapBreakpoint", linehl = "", numhl = ""})
sign("DapBreakpointCondition", { text = "●", texthl = "DapBreakpointCondition", linehl = "", numhl = ""})
sign("DapLogPoint", { text = "◆", texthl = "DapLogPoint", linehl = "", numhl = ""})
Expand Down
11 changes: 11 additions & 0 deletions lua/catppuccin/groups/integrations/dadbod_ui.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
local M = {}

function M.get()
return {
NotificationInfo = { fg = C.blue, bg = C.mantle },
NotificationWarning = { fg = C.yellow, bg = C.mantle },
NotificationError = { fg = C.red, bg = C.mantle },
}
end

return M
1 change: 1 addition & 0 deletions lua/catppuccin/types.lua
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@
-- sign("DapBreakpointCondition", { text = "●", texthl = "DapBreakpointCondition", linehl = "", numhl = ""})
-- sign("DapLogPoint", { text = "◆", texthl = "DapLogPoint", linehl = "", numhl = ""})
-- ```
---@field dadbod_ui boolean?
---@field dap boolean?
---@field dap_ui boolean?
---@field dashboard boolean?
Expand Down

0 comments on commit 4db4c77

Please sign in to comment.