Comments (8)
Thanks for the update and the great help. Eventually went for
require("rose-pine").setup({
highlight_groups = {
["@field"] = { fg = 'text' },
["@attribute"] = { fg = 'subtle' },
},
})
from neovim.
Sorry, could you elaborate on what exactly you'd like the result to be? Are you saying dataclasses
should be different from name
, age
, etc.?
from neovim.
No, type str
of name
should be a different color as shown in your screenshot. I don't know why it doesn't show in my test. I have used the repro config, but it is not shown in my terminal.
from neovim.
Ah, those must be from the language server. If you can provide the output of :Inspect
on both the variable and the type I can offer more assistance. Iām assuming those groups will start with @lsp
from neovim.
There is no @lsp
when I view :Inspect
.
variable:
Treesitter
- @variable.python links to @variable python
- @field.python links to @field python
type:
Treesitter
- @variable.python links to @variable python
- @type.python links to Type python
- @type.builtin.python links to Type python
from neovim.
Gotcha, thanks for those. This is the same for other languages as well, we set types and fields to foam. Although not ideal, I think for now it's best to modify your personal config:
require("rose-pine").setup({
highlight_groups = {
["@field.python"] = "iris" -- this can be any named palette value
}
})
It's hard to not have fields be the same colour as some value because the value can be a type (foam), number (rose), string (gold), variable (text), etc.
from neovim.
Thanks, unfortunately your solution didn't work. (gives Lua errors)
This one works
require("rose-pine").setup({
highlight_groups = {
Type = { fg = "iris" },
},
})
from neovim.
I updated my comment above, I was missing square brackets around the key. Glad you got it to work though :)
from neovim.
Related Issues (20)
- bug: netrw directories do not have colours HOT 1
- feature: add testing
- feature: Revert back color for `@variable.builtin` from "text" to "love", and add highlight for `@lsp.type.selfKeyword` HOT 6
- bug: consts not highlighted in Rust HOT 2
- bug: Highlighting in markdown files not working as expected HOT 1
- bug: custom background isn't respected when a telescope window is open after v3.0.0 HOT 1
- bug: changed windows highlight groups HOT 1
- Issue: override a selection background
- feature: add non-italics variant HOT 1
- feature: add config option to disable syntax highlighting HOT 1
- bug: Setting transparency = false still has transparency HOT 10
- bug: rust constants not highlighted HOT 2
- bug: cursor "disappears" in indent-blankline situations, with cursorline enabled HOT 5
- Support for filetype-specific styling options HOT 9
- feature: maybe set DiagnosticOk highlights HOT 1
- bug: Semantic Highlight Token Issue with Python HOT 1
- bug: weird highlight behavior (Rust) HOT 2
- bug: neotree tabs not highlighted HOT 3
- bug: integrated terminal status line wrong color HOT 6
- bug: New lualine themes break "auto" lualine theme behaviour HOT 1
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 neovim.