Show active buffer's language on the right in the status bar

This commit is contained in:
Antonio Scandurra 2023-03-10 17:28:27 +01:00
parent b3c7526fb5
commit 693172854c
5 changed files with 100 additions and 2 deletions

View file

@ -1,5 +1,6 @@
use std::sync::Arc;
mod active_buffer_language;
pub use active_buffer_language::ActiveBufferLanguage;
use editor::Editor;
use fuzzy::{match_strings, StringMatch, StringMatchCandidate};
use gpui::{
@ -10,6 +11,7 @@ use language::{Buffer, LanguageRegistry};
use picker::{Picker, PickerDelegate};
use project::Project;
use settings::Settings;
use std::sync::Arc;
use workspace::{AppState, Workspace};
actions!(language_selector, [Toggle]);