Skip to content

Commit

Permalink
Merge pull request #7 from pustota-theme/json-support
Browse files Browse the repository at this point in the history
Fix json highlighting
  • Loading branch information
igor-gorohovsky authored Jan 20, 2025
2 parents a51f281 + 3f70708 commit a0500d8
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 1 deletion.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,18 @@ A clean, minimalist Neovim colorscheme inspired by the original [pustota VSCode
- Distraction-free, minimalist aesthetic
- Consistent and calm color palette
- Treesitter-powered syntax highlighting
- Great for Python, Rust, Elixir, Lua, Dockerfile, YAML, and more
- Great for Python, Rust, Elixir, Lua and more
- Closely matches the original VSCode theme (behavior for untested languages may vary)

## Tested languages
- Python
- Rust
- Elixir
- Lua
- JSON
- Dockerfile
- YAML

## Installation
For the best experience, ensure you have Treesitter installed and highlighting enabled.
Example with [lazy.nvim]:
Expand Down
30 changes: 30 additions & 0 deletions examples/json.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"title": "Neovim Theme Test",
"description": "A JSON file to test highlighting of different JSON constructs.",
"stringKey": "Hello, world!",
"escapeSequences": "Tabs\t, newlines\n, and quotes \"...\"",
"booleanTrue": true,
"booleanFalse": false,
"nullValue": null,
"integerNumber": 42,
"floatNumber": 3.14159,
"emptyArray": [],
"nonEmptyArray": [
"One",
"Two",
"Three",
{
"nestedObjectInArray": true
}
],
"objectKey": {
"nestedString": "inside object",
"nestedBoolean": false,
"nestedNumber": 999,
"nestedArray": [
{
"deepObjectKey": "deepValue"
}
]
}
}
3 changes: 3 additions & 0 deletions lua/pustota.lua
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ M.hl_langs = function()
hl(0, "@dot.elixir", { fg = colors.gray })
hl(0, "@constant.builtin.elixir", { link = "Constant" })
hl(0, "@string.special.elixir", { fg = colors.gray })

-- JSON specific
hl(0, "@property.json", { fg = colors.gray })
end

local highlight = function()
Expand Down

0 comments on commit a0500d8

Please sign in to comment.