Git Product home page Git Product logo

Comments (7)

mrjones2014 avatar mrjones2014 commented on September 26, 2024 1

Similar setup with some tweaked colors

image

local onedarkpro = require('onedarkpro')
local utils = require('onedarkpro.utils')
local gray = utils.lighten('#000000', 0.1, '#1b1b1b')
onedarkpro.setup({
  dark_theme = 'onedark_vivid',
  colors = {
    bg = '#000000',
    color_column = gray,
    telescope_prompt = utils.lighten('#000000', 0.01, '#101010'),
    telescope_results = '#000000',
  },
  hlgroups = {
    LineNr = gray,
    SignColumn = gray,
    Search = {
      fg = '${black}',
      bg = '${highlight}',
    },
    TelescopeBorder = {
      fg = '${telescope_results}',
      bg = '${telescope_results}',
    },
    TelescopePromptBorder = {
      fg = '${telescope_prompt}',
      bg = '${telescope_prompt}',
    },
    TelescopePromptCounter = { fg = '${fg}' },
    TelescopePromptNormal = { fg = '${fg}', bg = '${telescope_prompt}' },
    TelescopePromptPrefix = {
      fg = '${green}',
      bg = '${telescope_prompt}',
    },
    TelescopePromptTitle = {
      fg = '${telescope_prompt}',
      bg = '${green}',
    },

    TelescopePreviewTitle = {
      fg = '${telescope_results}',
      bg = '${green}',
    },
    TelescopeResultsTitle = {
      fg = '${telescope_results}',
      bg = '${telescope_results}',
    },

    TelescopeMatching = { fg = '${green}' },
    TelescopeNormal = { bg = '${telescope_results}' },
    TelescopeSelection = { bg = '${telescope_prompt}' },
  },
  plugins = {
    all = true,
  },
  options = {
    bold = true,
    italic = true,
    undercurl = true,
    window_unfocussed_color = true,
  },
  styles = {
    comments = 'italic',
    keywords = 'italic',
  },
})
vim.cmd('colorscheme onedarkpro')

from onedarkpro.nvim.

mmirus avatar mmirus commented on September 26, 2024 1

Had occasion to pop open some PHP code for the first time in a while, and thought I'd see how the theme compares to vscode. As it turns out, it's really close!

Here are a handful of changes I've made so far to match vscode more closely:

    -- PHP
    ["@method.php"] = { fg = "${blue}", style = "bold" },
    ["@method.call.php"] = { link = "@method.php" },
    ["@function.builtin.php"] = { fg = "${cyan}" },
    ["@keyword.php"] = { fg = "${purple}", style = "NONE" },
    ["@keyword.return.php"] = { link = "@keyword.php" },
    ["@namespace.php"] = { fg = "${yellow}", style = "bold" },

from onedarkpro.nvim.

NickP-real avatar NickP-real commented on September 26, 2024 1

since you change the highlight configuration, can you update the highlight value?

from onedarkpro.nvim.

olimorris avatar olimorris commented on September 26, 2024 1

@NickP-real - I've updated my Telescope post for the new theme API

from onedarkpro.nvim.

olimorris avatar olimorris commented on September 26, 2024

Had occasion to pop open some PHP code for the first time in a while, and thought I'd see how the theme compares to vscode. As it turns out, it's really close!

Here are a handful of changes I've made so far to match vscode more closely:

    -- PHP

    ["@method.php"] = { fg = "${blue}", style = "bold" },

    ["@method.call.php"] = { link = "@method.php" },

    ["@function.builtin.php"] = { fg = "${cyan}" },

    ["@keyword.php"] = { fg = "${purple}", style = "NONE" },

    ["@keyword.return.php"] = { link = "@keyword.php" },

    ["@namespace.php"] = { fg = "${yellow}", style = "bold" },


Amazing! Would you consider a pr to add PHP support?

from onedarkpro.nvim.

mmirus avatar mmirus commented on September 26, 2024

Sure thing! See #118.

from onedarkpro.nvim.

tristan957 avatar tristan957 commented on September 26, 2024

I will probably come with some Meson fixes at some point, and I have it on my list to look at C. I know you got the structure of the code from nightfox or whatever, but this is really easy to do custom highlighting!

from onedarkpro.nvim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.