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: add vim-dadbod-ui integration #747

Merged
merged 3 commits into from
Aug 9, 2024
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
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)
},
})
vollowx marked this conversation as resolved.
Show resolved Hide resolved

-- 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
Loading