Switching Fonts

Nvim does not natively support setting a specific font. I still wanted
a custom font for my .md files, so I made a autocmd that checks if nvim enters a markdown file and if so changes the Kitty font.

 
Create 2 files in kitty: ~/.config/kitty:

 
font_default.conf:

include ./kitty.conf

font_family JetBrainsMono Nerd Font Mono
font_size 13

font_markdown.conf:

include ./kitty.conf

font_family Garamond Mono
font_size 13

 
and in your kitty.conf just append at the end:

# BEGIN_KITTY_FONTS
font_family      family="Droid Sans Mono"
bold_font        auto
italic_font      auto
bold_italic_font auto
# END_KITTY_FONTS
font_size 13

 
This autocmd handles the switch: