scottmckendry / cyberdream.nvim

🤖💤 High-contrast, Futuristic & Vibrant Coloursheme for Neovim
MIT License
609 stars 25 forks source link

How can I make the builtin types italic (or different color)? #96

Closed emrebengue closed 2 months ago

emrebengue commented 2 months ago

Description

I am trying to make the builtin types in italic (or different color) to be able to distinguish them better.

Neovim version?

nvim v0.10.0

What should happen?

No response

What happened instead?

Screenshot from 2024-07-08 17-16-36 :Inspect when the cursor is on 'int' Screenshot from 2024-07-08 17-11-16 and this is when the cursor is on 'int32'

include

include

include

include

include

include

include

typedef unsigned int int32; typedef unsigned short int int16;

Your configuration

return {
  "scottmckendry/cyberdream.nvim",
  lazy = false,
  priority = 1000,
  config = function()
    require("cyberdream").setup {
      transparent = true,
      italic_comments = true,
      hide_fillchars = true,
      terminal_colors = true,
      borderless_telescope = { border = false, style = "flat" },
      theme = {
        variant = "auto",
        overrides = function(colours)
          return {
            TelescopePromptPrefix = { fg = colours.blue },
            TelescopeMatching = { fg = colours.cyan },
            TelescopeResultsTitle = { fg = colours.blue },
            TelescopePromptCounter = { fg = colours.cyan },
            TelescopePromptTitle = { fg = colours.bg, bg = colours.blue, bold = true },
          }
        end,
      },
    }

    vim.cmd("colorscheme cyberdream")
    vim.api.nvim_set_keymap("n", "<leader>tt", ":CyberdreamToggleMode<CR>", { noremap = true, silent = true })
    vim.api.nvim_create_autocmd("User", {
      pattern = "CyberdreamToggleMode",
      callback = function(ev)
        print("Switched to " .. ev.data .. " mode!")
      end,
    })
  end,
}
scottmckendry commented 2 months ago

Thanks for raising, @emrebengue!

I've made some small changes to the base theme to provide a bit more distinction base on your feedback. Here is what it looks like on the latest commit:

image