itchyny / calendar.vim

A calendar application for Vim
MIT License
1.95k stars 71 forks source link

Avoid overriding existing highlight groups #202

Closed Apeiros-46B closed 2 years ago

Apeiros-46B commented 2 years ago

Currently, configuring highlight groups without using autocmds (for example, the image shows how I do it with Neovim in Lua) does not work, due to the fact that the highlights get reset frequently. image This pull request adds the default argument to the highlight setting, preventing an override if the highlight group was already defined before the calendar was opened.

Related issue: #110

itchyny commented 2 years ago

Thank you.