From 243552c21e87be32d0e4ec45ca60e06039eb2198 Mon Sep 17 00:00:00 2001 From: siduck Date: Sat, 30 Jul 2022 16:01:47 +0530 Subject: [PATCH] override mason.nvim higlights with an autocmd temporarily https://github.com/williamboman/mason.nvim/discussions/133 --- lua/plugins/configs/mason.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lua/plugins/configs/mason.lua b/lua/plugins/configs/mason.lua index f91077f..5546340 100644 --- a/lua/plugins/configs/mason.lua +++ b/lua/plugins/configs/mason.lua @@ -4,7 +4,14 @@ if not present then return end -require("base46").load_highlight "mason" +vim.api.nvim_create_augroup("_mason", { clear = true }) +vim.api.nvim_create_autocmd("Filetype", { + pattern = "mason.nvim", + callback = function() + require("base46").load_highlight "mason" + end, + group = "_mason", +}) local options = { ensure_installed = { "lua-language-server" }, -- not an option from mason.nvim