From 4db4c77cc17d23aa90b393f3e550ce99b9e903d5 Mon Sep 17 00:00:00 2001 From: Rahul Garg <3199183+vihu@users.noreply.github.com> Date: Fri, 9 Aug 2024 17:58:48 +0530 Subject: [PATCH] feat: add vim-dadbod-ui integration (#747) * Add dadbod-ui * Address review cmts * Address second review cmt --- README.md | 14 ++++++++++++++ doc/catppuccin.txt | 14 +++++++++----- lua/catppuccin/groups/integrations/dadbod_ui.lua | 11 +++++++++++ lua/catppuccin/types.lua | 1 + 4 files changed, 35 insertions(+), 5 deletions(-) create mode 100644 lua/catppuccin/groups/integrations/dadbod_ui.lua diff --git a/README.md b/README.md index d70e6132..d6246396 100644 --- a/README.md +++ b/README.md @@ -1468,6 +1468,20 @@ let g:clap_theme = 'catppuccin' + + + + vim-dadbod-ui + + +```lua +dadbod_ui = false +``` + + + + + diff --git a/doc/catppuccin.txt b/doc/catppuccin.txt index 58a51482..d010aeed 100644 --- a/doc/catppuccin.txt +++ b/doc/catppuccin.txt @@ -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" < @@ -388,6 +388,10 @@ colorful-winsep.nvim>lua } < +dadbod-ui>lua + dadbod_ui = false +< + dashboard-nvim>lua dashboard = true < @@ -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(), }) @@ -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 = "", @@ -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 = ""}) diff --git a/lua/catppuccin/groups/integrations/dadbod_ui.lua b/lua/catppuccin/groups/integrations/dadbod_ui.lua new file mode 100644 index 00000000..db569bb6 --- /dev/null +++ b/lua/catppuccin/groups/integrations/dadbod_ui.lua @@ -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 diff --git a/lua/catppuccin/types.lua b/lua/catppuccin/types.lua index d0cc86c6..0e7ff5af 100644 --- a/lua/catppuccin/types.lua +++ b/lua/catppuccin/types.lua @@ -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?