2023-06-23 03:52:40 +00:00
# Font configuration
2023-09-23 01:17:13 +00:00
font_family FiraCode Nerd Font Mono
bold_font FiraCode Nerd Font Mono Bold
italic_font FiraCode Nerd Font Mono Italic
bold_italic_font FiraCode Nerd Font Mono Bold Italic
2023-06-23 06:36:52 +00:00
font_size 11.0
2023-09-23 01:17:13 +00:00
# firacode-specific
modify_font cell_height -6px
modify_font baseline 2
2023-06-23 03:52:40 +00:00
sync_to_monitor no
2023-09-23 01:17:13 +00:00
# if I'm hovering over the font, don't perform ligature, thanks.
disable_ligatures cursor
2023-06-23 03:52:40 +00:00
# NO BELLS!
enable_audio_bell no
# theme gruvbox_dark
# include /themes/gruvbox_dark.conf
# window_margin_width 5.0
# window_padding_width 5.0
# I'm on Prime's team here, blinking cursor is too distracting
cursor_blink_interval 0
background #282c34
dynamic_background_opacity true
2023-06-23 08:13:06 +00:00
background_opacity 0.97
2023-06-23 06:36:52 +00:00
macos_traditional_fullscreen no
2023-06-23 03:52:40 +00:00
# from nvim-nonicons
# symbol_map U+f101-U+f208 nonicon regular
# No creating windows
2023-06-23 06:36:52 +00:00
map ctrl+shift+enter no_op
map cmd+enter no_op
2023-06-23 03:52:40 +00:00
# I don't understand why some of these have remaps on MacOS
2023-06-23 16:44:02 +00:00
# new_os_window
map ctrl+shift+n no_op
# new_os_window
map cmd+n no_op
2023-06-23 03:52:40 +00:00
map ctrl+shift+w close_window
2023-06-23 06:36:52 +00:00
map shft+cmd+d no_op # just disable any apple-linux segregation
2023-06-23 03:52:40 +00:00
# tabs
## Tab creation
2023-06-23 08:13:06 +00:00
map ctrl+shift+t combine | new_tab | set_tab_title _
2023-06-23 06:36:52 +00:00
map cmd+t no_op
2023-06-23 08:13:06 +00:00
map ctrl+, set_tab_title _
2023-06-23 03:52:40 +00:00
## No tab destruction
2023-06-23 06:36:52 +00:00
map ctrl+shift+q no_op
map ctrl+shift+w no_op
2023-06-23 16:44:02 +00:00
# close_tab 🍎
map cmd+w no_op
2023-06-23 03:52:40 +00:00
## No tab iteration
2023-06-23 16:44:02 +00:00
# next_tab
map ctrl+shift+right no_op
# next_tab 🍎
map shift+cmd+] no_op
# next_tab
map ctrl+tab no_op
2023-06-23 03:52:40 +00:00
2023-06-23 16:44:02 +00:00
# previous_tab
map ctrl+shift+left no_op
# previous_tab 🍎
map shift+cmd+[ no_op
# previous_tab
map ctrl+shift+tab no_op
2023-06-23 03:52:40 +00:00
2023-06-23 16:44:02 +00:00
# move_tab_forward
map ctrl+shift+. no_op
2023-06-23 08:13:06 +00:00
2023-06-23 06:36:52 +00:00
## Tab linear jumping
2023-06-23 03:52:40 +00:00
map ctrl+1 goto_tab 1
map ctrl+2 goto_tab 2
map ctrl+3 goto_tab 3
map ctrl+4 goto_tab 4
map ctrl+5 goto_tab 5
2023-06-23 06:36:52 +00:00
map ctrl+6 goto_tab 6
map ctrl+7 goto_tab 7
map ctrl+8 goto_tab 8
map ctrl+9 goto_tab 9
map ctrl+0 goto_tab 10
### A bit ergonomics for mac
map cmd+1 goto_tab 1
map cmd+2 goto_tab 2
map cmd+3 goto_tab 3
map cmd+4 goto_tab 4
map cmd+5 goto_tab 5
map cmd+6 goto_tab 6
map cmd+7 goto_tab 7
map cmd+8 goto_tab 8
map cmd+9 goto_tab 9
map cmd+0 goto_tab 10
## Just disable all iteration of tab - use linear mapping
map ctrl+shift+right no_op
map shift+cmd+] no_op
map ctrl+tab no_op
map ctrl+shift+left no_op
map shift+cmd+[ no_op
map ctrl+shift+tab no_op
2023-06-23 03:52:40 +00:00
## Titles
2023-06-23 08:13:06 +00:00
tab_bar_edge top
2023-06-23 06:36:52 +00:00
tab_fade 0.6 1
2023-06-23 08:13:06 +00:00
tab_title_template "{fmt.fg.red}{bell_symbol}{activity_symbol}{fmt.fg.tab}{index}|{title}{(lambda parts: '/'.join([p if len(p) <= 2 else p[:2]+'…' for p in parts[:-1]] + [parts[-1]]))(tab.active_wd.split('/'))}"
2023-06-23 06:36:52 +00:00
active_tab_font_style bold
2023-06-23 08:13:06 +00:00
active_tab_foreground #000
active_tab_background #eee
inactive_tab_foreground #444
inactive_tab_background #999
2023-06-23 03:52:40 +00:00
map ctrl+shift+, set_tab_title
2023-06-23 16:44:02 +00:00
# set_tab_title
map ctrl+shift+alt+t no_op
# set_tab_title
map shift+cmd+i no_op
2023-06-23 03:52:40 +00:00
# map ctrl+shift+p>n kitten hints --type=linenum --linenum-action=tab nvim +{line} {path}
# I don't really have good way to ever press F1
# map f1 kitten hints --customize-processing hint_define_word.py