26 lines
627 B
Lua
26 lines
627 B
Lua
return {
|
|
{
|
|
-- Package installer (for LSPs)
|
|
"williamboman/mason.nvim",
|
|
opts = {}
|
|
},
|
|
{
|
|
-- Highlight color codes (like #A3F041)
|
|
"norcalli/nvim-colorizer.lua",
|
|
-- event = { "BufNew" }, -- will not call autocmd when opening a file the first time
|
|
config = function()
|
|
require("colorizer").setup({'*'}, { RRGGBBAA = true })
|
|
|
|
-- trigger highlighting when opening a new buffer
|
|
vim.api.nvim_create_autocmd(
|
|
{ "BufNew", "BufRead" },
|
|
{
|
|
callback = function()
|
|
local colorizer = require("colorizer")
|
|
colorizer.attach_to_buffer(0, colorizer.get_buffer_options(0))
|
|
end
|
|
})
|
|
end,
|
|
}
|
|
}
|