override mason.nvim higlights with an autocmd temporarily

https://github.com/williamboman/mason.nvim/discussions/133
This commit is contained in:
siduck 2022-07-30 16:01:47 +05:30
parent 27f01cbb10
commit 243552c21e
1 changed files with 8 additions and 1 deletions

View File

@ -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