Skip to content

Commit 3f70708

Browse files
fix json highlighting
1 parent a51f281 commit 3f70708

File tree

3 files changed

+43
-1
lines changed

3 files changed

+43
-1
lines changed

README.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,18 @@ A clean, minimalist Neovim colorscheme inspired by the original [pustota VSCode
99
- Distraction-free, minimalist aesthetic
1010
- Consistent and calm color palette
1111
- Treesitter-powered syntax highlighting
12-
- Great for Python, Rust, Elixir, Lua, Dockerfile, YAML, and more
12+
- Great for Python, Rust, Elixir, Lua and more
1313
- Closely matches the original VSCode theme (behavior for untested languages may vary)
1414

15+
## Tested languages
16+
- Python
17+
- Rust
18+
- Elixir
19+
- Lua
20+
- JSON
21+
- Dockerfile
22+
- YAML
23+
1524
## Installation
1625
For the best experience, ensure you have Treesitter installed and highlighting enabled.
1726
Example with [lazy.nvim]:

examples/json.json

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"title": "Neovim Theme Test",
3+
"description": "A JSON file to test highlighting of different JSON constructs.",
4+
"stringKey": "Hello, world!",
5+
"escapeSequences": "Tabs\t, newlines\n, and quotes \"...\"",
6+
"booleanTrue": true,
7+
"booleanFalse": false,
8+
"nullValue": null,
9+
"integerNumber": 42,
10+
"floatNumber": 3.14159,
11+
"emptyArray": [],
12+
"nonEmptyArray": [
13+
"One",
14+
"Two",
15+
"Three",
16+
{
17+
"nestedObjectInArray": true
18+
}
19+
],
20+
"objectKey": {
21+
"nestedString": "inside object",
22+
"nestedBoolean": false,
23+
"nestedNumber": 999,
24+
"nestedArray": [
25+
{
26+
"deepObjectKey": "deepValue"
27+
}
28+
]
29+
}
30+
}

lua/pustota.lua

+3
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ M.hl_langs = function()
117117
hl(0, "@dot.elixir", { fg = colors.gray })
118118
hl(0, "@constant.builtin.elixir", { link = "Constant" })
119119
hl(0, "@string.special.elixir", { fg = colors.gray })
120+
121+
-- JSON specific
122+
hl(0, "@property.json", { fg = colors.gray })
120123
end
121124

122125
local highlight = function()

0 commit comments

Comments
 (0)