Small bug fix

Signed-off-by: Taken <taken@mairimashita.org>
This commit is contained in:
2023-09-23 10:18:11 +02:00
parent 899ffa9dbc
commit 0c523ee51a
2 changed files with 6 additions and 2 deletions

View File

@@ -3,4 +3,6 @@ local prefs = require("taken.prefs")
vim.cmd("colorscheme " .. prefs.colorscheme) vim.cmd("colorscheme " .. prefs.colorscheme)
local cursorcolumncolor = vim.fn.synIDattr(vim.fn.hlID("CursorColumn"), "bg") local cursorcolumncolor = vim.fn.synIDattr(vim.fn.hlID("CursorColumn"), "bg")
vim.cmd("hi CursorLine guibg=" .. cursorcolumncolor) if cursorcolumncolor ~= "" then
vim.cmd("hi CursorLine guibg=" .. cursorcolumncolor)
end

View File

@@ -48,8 +48,10 @@ function M.themeselector()
change_theme(oldstring, newstring) change_theme(oldstring, newstring)
local cursorcolumncolor = vim.fn.synIDattr(vim.fn.hlID("CursorColumn"), "bg") local cursorcolumncolor = vim.fn.synIDattr(vim.fn.hlID("CursorColumn"), "bg")
if cursorcolumncolor ~= "" then
vim.cmd("hi CursorLine guibg=" .. cursorcolumncolor) vim.cmd("hi CursorLine guibg=" .. cursorcolumncolor)
end end
end
vim.ui.select(themes, opts, exec) vim.ui.select(themes, opts, exec)
end end