summaryrefslogtreecommitdiff
path: root/src/widgets/luaeditor/mod.rs
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2024-08-02 15:51:45 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2024-08-02 15:51:45 +0200
commitd1492a10cdaf714074d29ad3366ab9c169d95b75 (patch)
tree4192aa6825479f56332b3cd40d56913e48b95222 /src/widgets/luaeditor/mod.rs
parentc920f258f6c9b0623a841b7c27561fa1d09cef72 (diff)
add bartheme and barstate to sheetview
Diffstat (limited to 'src/widgets/luaeditor/mod.rs')
-rw-r--r--src/widgets/luaeditor/mod.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/widgets/luaeditor/mod.rs b/src/widgets/luaeditor/mod.rs
index de35c3d..3ce9ab5 100644
--- a/src/widgets/luaeditor/mod.rs
+++ b/src/widgets/luaeditor/mod.rs
@@ -1,6 +1,6 @@
use ratatui::{
crossterm::event::{KeyCode, KeyEvent, KeyModifiers},
- style::{Style, Stylize},
+ style::Stylize,
text::{ToLine, ToSpan},
widgets::Widget,
};
@@ -23,9 +23,7 @@ pub struct LuaEditor {
impl LuaEditor {
pub fn new() -> Self {
Self {
- bar: StatusBar::new()
- .left(" [No Name] ")
- .left_style(Style::default().on_magenta()),
+ bar: StatusBar::new(),
scroll: 0,
highlight_config: treesitter::new_highlight_configuration(),
}