diff options
Diffstat (limited to '.vim/plugin/colorscheme.lua')
| -rw-r--r-- | .vim/plugin/colorscheme.lua | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/.vim/plugin/colorscheme.lua b/.vim/plugin/colorscheme.lua deleted file mode 100644 index 240737e..0000000 --- a/.vim/plugin/colorscheme.lua +++ /dev/null @@ -1,23 +0,0 @@ -vim.opt.background = 'dark' - --- setup color-scheme detection via desktop portal apis -vim.api.nvim_create_autocmd('UIEnter', { - once = true, - callback = function() - local job = require('plenary.job'):new({ - command = 'porta', - args = { 'settings', 'org.freedesktop.appearance', 'color-scheme' }, - enable_recording = true, - }) - local res, exitcode = job:sync() - if exitcode == 0 and #res == 1 then - if res[1] == 'prefer-light' then - vim.opt.background = 'light' - else - vim.opt.background = 'dark' - end - end - end, -}) - -vim.api.nvim_set_hl(0, 'ColorColumn', { link = 'CursorColumn', force = true }) |