Giter VIP home page Giter VIP logo

Comments (3)

aktersnurra avatar aktersnurra commented on August 11, 2024

Thanks! I see that you are using lazy, so you can define a custom config function when you load the colorscheme where you override the highlight groups, e.g.:

config = function()
  require("no-clown-fiesta").load()
  vim.api.nvim_set_hl(0, "@exeption.python", { fg = "#7e97ab" })
 end,

I have not done this myself, but I believe that this should work.

from no-clown-fiesta.nvim.

ostadsgo avatar ostadsgo commented on August 11, 2024

Thanks, I solved my problem right after posting with vim.cmd(""hi! @exception.python guifg=#7e97ab") passing it to lazy config option.
After the response, I add these lines to make it nicer. but I was thinking to add separate file for Python, like we have for git treesitter and etc. I don't know how create hl group for something like @exception.python. If I had to change colors for different languages eventually I need to figure out how to create different group for groups that I inspect in neovim.

    config = function()
      local palette = require("no-clown-fiesta.palette")
      vim.cmd("colorscheme no-clown-fiesta")
      vim.api.nvim_set_hl(0, "@exeption.python", { fg = palette.gray_blue })
      vim.api.nvim_set_hl(0, "@inclue.python", { fg = palette.gray_blue })
    end

from no-clown-fiesta.nvim.

aktersnurra avatar aktersnurra commented on August 11, 2024

Yeah, if you want to modify the colorscheme for different languages, I would suggest to fork it (maybe you did that already) and add different highlight groups for each language. It should be fairly obvious how to extend the colorscheme to do this.

from no-clown-fiesta.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.