From d9247da971d5302efbd3898e1079f1ba6eed342c Mon Sep 17 00:00:00 2001 From: Casey Webster Date: Tue, 2 Nov 2021 17:15:59 -0500 Subject: [PATCH 1/2] Respect transparency by providing a value for none With the refactor removing values from the color mapper table, the missing value on cp.none prevents transparency from being respected. This adds a value for that in a core.mapper close to where it is used and does not pollute th color mapping table. --- lua/katppuccino/core/mapper.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/katppuccino/core/mapper.lua b/lua/katppuccino/core/mapper.lua index ad9f08f..26aa069 100644 --- a/lua/katppuccino/core/mapper.lua +++ b/lua/katppuccino/core/mapper.lua @@ -18,6 +18,7 @@ end local function get_base() local cp = color_palette + cp.none = "NONE" return { Comment = { fg = cp.katppuccino11, style = cnf.styles.comments }, -- just comments From 1d1ed66cadd422e96cab4d1e1590009a68ad4d72 Mon Sep 17 00:00:00 2001 From: Casey Webster Date: Tue, 2 Nov 2021 17:20:00 -0500 Subject: [PATCH 2/2] Respect tabs v spaces --- lua/katppuccino/core/mapper.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/katppuccino/core/mapper.lua b/lua/katppuccino/core/mapper.lua index 26aa069..1c30d0b 100644 --- a/lua/katppuccino/core/mapper.lua +++ b/lua/katppuccino/core/mapper.lua @@ -18,7 +18,7 @@ end local function get_base() local cp = color_palette - cp.none = "NONE" + cp.none = "NONE" return { Comment = { fg = cp.katppuccino11, style = cnf.styles.comments }, -- just comments