moved ftplugins, and fixed some plugins
This commit is contained in:
parent
3a09e91ad6
commit
8c56556c86
23 changed files with 578 additions and 244 deletions
|
|
@ -1,19 +1,14 @@
|
|||
return {
|
||||
'f-person/auto-dark-mode.nvim',
|
||||
event = 'VimEnter', -- Lazy load on VimEnter event
|
||||
opts = {
|
||||
update_interval = 1000, -- Check for mode change every second
|
||||
update_interval = 2000,
|
||||
set_dark_mode = function()
|
||||
vim.api.nvim_set_option_value('background', 'dark', {})
|
||||
vim.cmd('colorscheme monokai')
|
||||
vim.cmd('set background=dark') -- Ensure the background is set correctly
|
||||
end,
|
||||
set_light_mode = function()
|
||||
vim.api.nvim_set_option_value('background', 'light', {})
|
||||
vim.cmd('colorscheme solarized')
|
||||
vim.cmd('set background=light')
|
||||
end,
|
||||
},
|
||||
config = function(_, opts)
|
||||
require('auto-dark-mode').setup(opts)
|
||||
end
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue