summaryrefslogtreecommitdiff
path: root/src/widgets/luaeditor/theme.rs
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2024-07-25 16:40:16 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2024-07-25 16:40:16 +0200
commit20e7569e2bf11d110d5afd2a99eacdbd65a7e055 (patch)
treeeb81af42bf03083495135afea9e20816eb0bfab8 /src/widgets/luaeditor/theme.rs
parent9722d01b078dbf554431a3af3767012fce341b95 (diff)
run prettifier
Diffstat (limited to 'src/widgets/luaeditor/theme.rs')
-rw-r--r--src/widgets/luaeditor/theme.rs56
1 files changed, 29 insertions, 27 deletions
diff --git a/src/widgets/luaeditor/theme.rs b/src/widgets/luaeditor/theme.rs
index 2af8534..38e4498 100644
--- a/src/widgets/luaeditor/theme.rs
+++ b/src/widgets/luaeditor/theme.rs
@@ -1,37 +1,39 @@
-use ratatui::{style::{Color, Stylize}, text::Span};
+use ratatui::{
+ style::{Color, Stylize},
+ text::Span,
+};
use tree_sitter_highlight::Highlight;
-
static HIGHLIGHT_THEME: [Color; 29] = [
- Color::White, // attribute
- Color::White, // boolean
- Color::DarkGray, // comment
+ Color::White, // attribute
+ Color::White, // boolean
+ Color::DarkGray, // comment
Color::LightYellow, // conditional
- Color::White, // constant
- Color::White, // constant.builtin
- Color::White, // constructor
- Color::White, // field
- Color::White, // function
- Color::White, // function.builtin
- Color::White, // function.call
- Color::Yellow, // keyword
+ Color::White, // constant
+ Color::White, // constant.builtin
+ Color::White, // constructor
+ Color::White, // field
+ Color::White, // function
+ Color::White, // function.builtin
+ Color::White, // function.call
+ Color::Yellow, // keyword
Color::LightYellow, // keyword.function
- Color::White, // keyword.operator
+ Color::White, // keyword.operator
Color::LightYellow, // keyword.return
- Color::White, // label
- Color::White, // method
- Color::White, // method.call
- Color::Blue, // number
- Color::Gray, // operator
- Color::White, // parameter
- Color::White, // preproc
- Color::Gray, // punctuation.bracket
- Color::Gray, // punctuation.delimiter
+ Color::White, // label
+ Color::White, // method
+ Color::White, // method.call
+ Color::Blue, // number
+ Color::Gray, // operator
+ Color::White, // parameter
+ Color::White, // preproc
+ Color::Gray, // punctuation.bracket
+ Color::Gray, // punctuation.delimiter
Color::LightYellow, // repeat
- Color::LightGreen, // string
- Color::Yellow, // string.escape
- Color::Gray, // variable
- Color::White, // variable.builtin
+ Color::LightGreen, // string
+ Color::Yellow, // string.escape
+ Color::Gray, // variable
+ Color::White, // variable.builtin
];
pub fn theme_highlight_group(hl: Option<Highlight>, span: Span) -> Span {