File tree Expand file tree Collapse file tree 3 files changed +8
-10
lines changed
Expand file tree Collapse file tree 3 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -146,9 +146,7 @@ impl Functions for Alacritty {
146146 // See https://github.com/neovim/neovim/issues/11330
147147 #[ cfg( target_os = "linux" ) ]
148148 fn post_start ( & mut self , config : & Config , term_pid : Pid ) {
149- let proc_name = match Path :: new ( & config. nvim_exe_path )
150- . file_name ( )
151- {
149+ let proc_name = match Path :: new ( & config. nvim_exe_path ) . file_name ( ) {
152150 None => {
153151 log:: warn!(
154152 "Cannot identify executable name from '{}'" ,
Original file line number Diff line number Diff line change 11mod alacritty;
2+ mod foot;
23mod kitty;
34mod urxvt;
45mod wezterm;
5- mod foot;
66use super :: config:: Config ;
77use crate :: config:: Backend ;
88use crate :: error:: GlrnvimError ;
@@ -13,16 +13,15 @@ extern crate shellexpand;
1313
1414pub trait Functions {
1515 fn create_command ( & mut self , config : & Config ) -> std:: process:: Command ;
16- fn post_start ( & mut self , _config : & Config , _term_pid : Pid ) {
17- }
16+ fn post_start ( & mut self , _config : & Config , _term_pid : Pid ) { }
1817}
1918
2019#[ cfg( not( target_os = "windows" ) ) ]
2120const COMMON_ARGS : & [ & str ] = & [
2221 "--cmd" ,
2322 "set termguicolors" , // Enable 24-bits colors
2423 "--cmd" ,
25- "set title" , // Set title string
24+ "set title" , // Set title string
2625 "--cmd" ,
2726 "let g:glrnvim_gui=1" ,
2827] ;
@@ -31,7 +30,7 @@ const COMMON_ARGS: &[&str] = &[
3130 "\" --cmd\" " ,
3231 "\" set termguicolors\" " , // Enable 24-bits colors
3332 "\" --cmd\" " ,
34- "\" set title\" " , // Set title string
33+ "\" set title\" " , // Set title string
3534 "\" --cmd\" " ,
3635 "\" let g:glrnvim_gui=1\" " ,
3736] ;
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ use std::env;
1111use std:: process:: Command ;
1212use sysinfo:: Pid ;
1313
14-
1514const DEFAULT_FONT_SIZE : u8 = 12 ;
1615
1716const VERSION : & str = env ! ( "CARGO_PKG_VERSION" ) ;
@@ -137,7 +136,9 @@ fn show_help() {
137136 conf_dir. push ( "glrnvim" ) ;
138137 conf_dir. push ( "config.yml" ) ;
139138 println ! ( "\n Config file: {}" , conf_dir. display( ) ) ;
140- println ! ( "See https://github.com/beeender/glrnvim/blob/master/glrnvim.yml for example." ) ;
139+ println ! (
140+ "See https://github.com/beeender/glrnvim/blob/master/glrnvim.yml for example."
141+ ) ;
141142 }
142143 None => {
143144 println ! ( "\n Config file: Cannot identify the current config directory. No config file can be loaded." ) ;
You can’t perform that action at this time.
0 commit comments