Auto dark/light mode switching, fix Mason

This commit is contained in:
Bartek Stalewski 2024-09-26 02:21:11 +02:00
parent 0d1e6f2967
commit 4d516d6b9d
No known key found for this signature in database
7 changed files with 58 additions and 23 deletions

View file

@ -25,6 +25,12 @@ M.ui = {
statusline = {
theme = "vscode_colored",
}
}
M.mason = {
cmd = true,
pkgs = {"lua-language-server"}
}
return M

View file

@ -1,3 +1,10 @@
--local function set_theme(name)
-- local cur_theme = require('nvconfig').ui.theme
-- require("nvchad.utils").replace_word(cur_theme, name)
-- require('nvconfig').ui.theme = name
-- require('base46').load_all_highlights()
--end
return {
{
"stevearc/conform.nvim",
@ -16,15 +23,6 @@ return {
-- end,
-- },
{
"williamboman/mason.nvim",
opts = {
ensure_installed = {
"lua-language-server",
},
},
},
{
"nvim-treesitter/nvim-treesitter",
opts = {
@ -40,12 +38,19 @@ return {
},
},
{
"kdheepak/lazygit.nvim",
keys = {
{ "<leader>lg", "<cmd>LazyGit<cr>", desc = "LazyGit" },
},
}
-- {
-- "f-person/auto-dark-mode.nvim",
-- event = 'VeryLazy',
-- config = {
-- update_interval = 1000,
-- set_dark_mode = function()
-- set_theme('monekai')
-- end,
-- set_light_mode = function()
-- set_theme('ayu_light')
-- end,
-- }
-- }
-- Install a plugin
-- {