Set initial colorscheme on debian hosts
This commit is contained in:
parent
4dba4f2bb0
commit
8bd8ce698c
1 changed files with 20 additions and 13 deletions
|
|
@ -1,9 +1,6 @@
|
|||
-- {{ ansible_managed }}
|
||||
|
||||
-- set the colorscheme whenever the background setting changes
|
||||
vim.api.nvim_create_autocmd({'OptionSet'}, {
|
||||
pattern = {'background'},
|
||||
callback = function()
|
||||
local background_callback = function()
|
||||
if vim.o.background == 'dark' then
|
||||
vim.cmd('colorscheme github_dark_dimmed')
|
||||
else
|
||||
|
|
@ -13,7 +10,17 @@ vim.api.nvim_create_autocmd({'OptionSet'}, {
|
|||
-- force a full redraw:
|
||||
vim.cmd('mode')
|
||||
end
|
||||
})
|
||||
|
||||
-- set the colorscheme whenever the background setting changes
|
||||
vim.api.nvim_create_autocmd(
|
||||
{ 'OptionSet' },
|
||||
{ pattern = { 'background' }, callback = background_callback }
|
||||
)
|
||||
|
||||
|
||||
{% if ansible_facts['os_family'] == 'Debian' %}
|
||||
background_callback()
|
||||
{% endif %}
|
||||
|
||||
{% if ansible_facts['os_family'] == 'Archlinux' %}
|
||||
--[[
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue