diff options
Diffstat (limited to 'helix-tui/src/lib.rs')
-rw-r--r-- | helix-tui/src/lib.rs | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/helix-tui/src/lib.rs b/helix-tui/src/lib.rs index 2636b268..59327d7c 100644 --- a/helix-tui/src/lib.rs +++ b/helix-tui/src/lib.rs @@ -25,10 +25,12 @@ //! use std::io; //! use helix_tui::Terminal; //! use helix_tui::backend::CrosstermBackend; +//! use helix_view::editor::Config; //! //! fn main() -> Result<(), io::Error> { //! let stdout = io::stdout(); -//! let backend = CrosstermBackend::new(stdout); +//! let config = Config::default(); +//! let backend = CrosstermBackend::new(stdout, &config); //! let mut terminal = Terminal::new(backend)?; //! Ok(()) //! } @@ -56,11 +58,13 @@ //! use helix_tui::backend::CrosstermBackend; //! use helix_tui::widgets::{Widget, Block, Borders}; //! use helix_tui::layout::{Layout, Constraint, Direction}; +//! use helix_view::editor::Config; //! //! fn main() -> Result<(), io::Error> { //! terminal::enable_raw_mode().unwrap(); //! let stdout = io::stdout(); -//! let backend = CrosstermBackend::new(stdout); +//! let config = Config::default(); +//! let backend = CrosstermBackend::new(stdout, &config); //! let mut terminal = Terminal::new(backend)?; //! // terminal.draw(|f| { //! // let size = f.size(); @@ -86,11 +90,13 @@ //! use helix_tui::backend::CrosstermBackend; //! use helix_tui::widgets::{Widget, Block, Borders}; //! use helix_tui::layout::{Layout, Constraint, Direction}; +//! use helix_view::editor::Config; //! //! fn main() -> Result<(), io::Error> { //! terminal::enable_raw_mode().unwrap(); //! let stdout = io::stdout(); -//! let backend = CrosstermBackend::new(stdout); +//! let config = Config::default(); +//! let backend = CrosstermBackend::new(stdout, &config); //! let mut terminal = Terminal::new(backend)?; //! // terminal.draw(|f| { //! // let chunks = Layout::default() |