EdenEast / nightfox.nvim

🦊A highly customizable theme for vim and neovim with support for lsp, treesitter and a variety of plugins.
MIT License
2.91k stars 136 forks source link

zsh functions not in italics #341

Closed eggbean closed 2 months ago

eggbean commented 1 year ago

It's probably something in my configuration, but when I am in a zsh buffer (filetype=zsh) function names don't appear in italics like as set in the nightfox configuration and how they appear in bash.

Is this expected?

EdenEast commented 1 year ago

Check what the highlight group being applied. If you are on nightly neovim you can use :Inspect to determine what highlight group is being applied. If you are not then you can use the treesitter playground.

Korab-Doroci commented 2 months ago

Once I know the highlight group being applied, how do I then add it to my nightfox configuration?

EdenEast commented 2 months ago

In nvim 0.9+ they introduced the :Inspect command to print the highlight groups that are being applied. Once you have found the highlight group that is being applied you can then configure that with nightfox by:

require("nightfox").setup({
  groups = {
    all = { -- Apply to all colorschemes
      ["@property"] = { fg = "palette.cyan" },
    },
  },
})

See Customize palettes and groups for more information.