diff --git a/lua/mellifluous/cli.lua b/lua/mellifluous/cli.lua index 4bbe53b..7300213 100644 --- a/lua/mellifluous/cli.lua +++ b/lua/mellifluous/cli.lua @@ -24,6 +24,7 @@ function M.create() return end + require("mellifluous.utils.highlighter").clear_highlights() vim.cmd("colorscheme mellifluous") end, { nargs = 1, diff --git a/lua/mellifluous/utils/highlighter.lua b/lua/mellifluous/utils/highlighter.lua index 1ed8492..671d36b 100644 --- a/lua/mellifluous/utils/highlighter.lua +++ b/lua/mellifluous/utils/highlighter.lua @@ -40,4 +40,8 @@ function M.apply_all() end end +function M.clear_highlights() + highlights = {} +end + return M