OXY2DEV / markview.nvim

An experimental markdown previewer for Neovim
Apache License 2.0
603 stars 23 forks source link

feat!: allow user overrides of settings #24

Closed pkazmier closed 5 days ago

pkazmier commented 5 days ago

Change the highlight groups table from a list to a map. This allows the deep_extend machinery to do its job when merging the user configuration with the default configuration. Prior to these changes, a users could not just override one value in the typical fashion of providing that one value in the argument to the setup function. So, now if I want to change the default red highlight group, but leave everything else the same.

require("markview").setup({
  highlight_groups = {
    red = { value = { bg = "#ff0000"}}
  },
})