-
-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added line numbers and split up code
- Loading branch information
Showing
10 changed files
with
183 additions
and
86 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,4 @@ lto = true | |
termion = "1" | ||
unicode-segmentation = "1" | ||
unicode-width = "0" | ||
regex = "1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Config.rs - In charge of storing configuration information | ||
use termion::color; | ||
|
||
// Set up background colours | ||
pub const BG: color::Bg<color::Rgb> = color::Bg(color::Rgb(40, 42, 54)); | ||
pub const STATUS_BG: color::Bg<color::Rgb> = color::Bg(color::Rgb(68, 71, 90)); | ||
pub const RESET_BG: color::Bg<color::Reset> = color::Bg(color::Reset); | ||
|
||
// Set up foreground colours | ||
pub const FG: color::Fg<color::Rgb> = color::Fg(color::Rgb(255, 255, 255)); | ||
pub const STATUS_FG: color::Fg<color::Rgb> = color::Fg(color::Rgb(80, 250, 123)); | ||
pub const RESET_FG: color::Fg<color::Reset> = color::Fg(color::Reset); | ||
|
||
// For holding the tab width (how many spaces in a tab) | ||
pub const TAB_WIDTH: usize = 4; | ||
|
||
// Line numbers | ||
pub const LINE_NUMBER_FG: color::Fg<color::Rgb> = color::Fg(color::Rgb(68, 71, 90)); | ||
pub const LINE_NUMBER_PADDING: usize = 1; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.