Moved small function to theme switcher and setting

This commit is contained in:
2023-09-22 23:00:58 +02:00
parent 65e0c68541
commit 1962b1f3e4
3 changed files with 6 additions and 4 deletions

View File

@@ -46,6 +46,9 @@ function M.themeselector()
vim.cmd("colorscheme " .. choice)
local newstring = 'M.colorscheme = "' .. choice .. '"'
change_theme(oldstring, newstring)
local cursorcolumncolor = vim.fn.synIDattr(vim.fn.hlID("CursorColumn"), "bg")
vim.cmd("hi CursorLine guibg=" .. cursorcolumncolor)
end
vim.ui.select(themes, opts, exec)