Skip to content

Commit

Permalink
fix: only set vim colorscheme for default colorscheme (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikesmithgh authored Dec 13, 2023
1 parent 19eb104 commit 8529d4d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/kitty_scrollback_nvim.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,9 @@ def handle_result(args: List[str],
' group = vim.api.nvim_create_augroup([[KittyScrollBackNvimVimEnter]], { clear = true }),'
' pattern = [[*]],'
' callback = function()'
' vim.cmd.colorscheme({ args = {[[vim]]}, mods = { emsg_silent = true }})'
' if vim.g.colors_name == nil or vim.g.colors_name == [[default]] then'
' vim.cmd.colorscheme({ args = {[[vim]]}, mods = { emsg_silent = true }})'
' end'
f' vim.opt.runtimepath:append([[{ksb_dir}]])'
' vim.api.nvim_exec_autocmds([[User]], { pattern = [[KittyScrollbackLaunch]], modeline = false })'
f' require([[kitty-scrollback.launch]]).setup_and_launch([[{kitty_data}]])'
Expand Down

0 comments on commit 8529d4d

Please sign in to comment.