Comments (5)
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.
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.
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.
from vim-lua.
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.
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)
- Issue when indenting anonymous functions HOT 1
- Breaks tpope/vim-endwise HOT 3
- Help HOT 2
- How to trigger the indent? HOT 1
- Has this been merged upstream? HOT 4
- Why is luaFuncCall linked to PreProc instead of Function? HOT 3
- Comparison to BetterLua
- Indentation issue with table literal function arguments
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vim-lua.