nordic.nvim icon indicating copy to clipboard operation
nordic.nvim copied to clipboard

feat!: change italics configuration for finer control

Open delafthi opened this issue 2 years ago • 0 comments

Instead of just enabling or disabling italics provide a table where the user can enable italics for different keywords.

    italics = {
        enabled = true, -- Enable/disable italics globally
        -- Enable/disable italics on a finer level. Changing settings below will only have effect when 'enabled' is set to true
        attributes = false,
        builtins = true,
        comments = false,
        constructors = true,
        conditionals = true,
        defines = false,
        emphasis = true,
        exceptions = false,
        fields = false,
        functions = true,
        includes = false,
        keywords = false,
        labels = true,
        parameters = true,
        properties = false,
        repeats = true,
        types = false,
        variables = false,
    },

This change breaks old configurations (the old settings just won't have any effect) due to:

  • italic changed to italics, which requires a table now
  • italic_comments merged into the italics table

delafthi avatar Dec 07 '22 13:12 delafthi