From b6896bd58f38a40f0a5b50f86f686d51bdae6180 Mon Sep 17 00:00:00 2001 From: Ramtin Javanmardi Date: Sun, 31 Aug 2025 10:34:09 +0200 Subject: [PATCH] Quick fix for lazyvim bufferline error when using catppuccin (#1084) * Quick fix for lazyvim bufferline error when using catppuccin * This is a slightly better fix * Adding the fix in theme, actually messed up the theme colors * Adding the migration file --------- Co-authored-by: David Heinemeier Hansson --- config/nvim/lua/plugins/temp-fix.lua | 12 ++++++++++++ migrations/1756234177.sh | 3 +++ 2 files changed, 15 insertions(+) create mode 100644 config/nvim/lua/plugins/temp-fix.lua create mode 100644 migrations/1756234177.sh diff --git a/config/nvim/lua/plugins/temp-fix.lua b/config/nvim/lua/plugins/temp-fix.lua new file mode 100644 index 0000000..cd1eadd --- /dev/null +++ b/config/nvim/lua/plugins/temp-fix.lua @@ -0,0 +1,12 @@ +return { + { + "akinsho/bufferline.nvim", + -- TODO: Remove this once its fixed in lazyvim. This is only a temporary fix, and its onl needed for catppuccin + init = function() + local bufline = require("catppuccin.groups.integrations.bufferline") + function bufline.get() + return bufline.get_theme() + end + end, + }, +} diff --git a/migrations/1756234177.sh b/migrations/1756234177.sh new file mode 100644 index 0000000..29efed6 --- /dev/null +++ b/migrations/1756234177.sh @@ -0,0 +1,3 @@ +echo "Add temp-fix.lua for LazyVim Catppuccin bufferline compatibility" + +omarchy-refresh-config nvim/lua/plugins/temp-fix.lua