Giter Club home page Giter Club logo

Comments (5)

tbastos avatar tbastos commented on July 4, 2024

Have you tried other color schemes? Results will vary depending on the color scheme.

vim(-lua)'s syntax file only maps tokens to "highlight groups", not to a color. Your color scheme is then responsible for mapping a "highlight group" to a color. You can fine-tune your colors by writing custom highlight rules to complement your color scheme's defaults. To understand how tokens in your Lua code are mapped to highlight groups, you can use one of the techniques described here: http://vim.wikia.com/wiki/Identify_the_syntax_highlighting_group_used_at_the_cursor

from vim-lua.

Atcold avatar Atcold commented on July 4, 2024

Exactly, luaFunction was mapped by default to Function.
Now you've changed it to Structure. Changing it back to Function does not restore the previous colour.
That's why I opened this issue. I'm not sure how to deal with your plugin.

from vim-lua.

Atcold avatar Atcold commented on July 4, 2024

OK, my bad... A normal function call was labelled as luaFunc, and not luaFunction... which was mapped to Identifier, which is mapped to ctermfg=208 in my colour scheme, which is the orange I was looking for.

image

from vim-lua.

Atcold avatar Atcold commented on July 4, 2024

Now I have a different question. Originally a library function call was mapped to Identifier, and now I have it pointing to PreProc, which is the green I don't like.
How do I override your change? I don't want to necessarily change my colour scheme because the mapping has changed (which could affect other syntaxes).
How do you deal with this situation?

from vim-lua.

Atcold avatar Atcold commented on July 4, 2024

OK, just added this to my $VIMRC:

hi def link luaSpecialValue Identifier

which is the answer to my initial question.
Now the issue can be closed.

from vim-lua.

Related Issues (9)

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.