From 5d4cf9bfdcd215f964d134a5dc46133a6fa4b808 Mon Sep 17 00:00:00 2001 From: Oliver Hartmann Date: Thu, 7 Jul 2022 22:21:57 +0200 Subject: [PATCH] setup the linux font --- lua/my_options.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lua/my_options.lua b/lua/my_options.lua index f1c4add..a139ada 100644 --- a/lua/my_options.lua +++ b/lua/my_options.lua @@ -33,7 +33,11 @@ opt.splitbelow= true opt.splitright= true opt.shiftwidth = indent opt.tabstop = indent -opt.guifont= 'JetBrainsMonoNL NF:h9' -- https://github.com/ryanoasis/nerd-fonts/blob/master/patched-fonts/JetBrainsMono/NoLigatures/Regular/complete/JetBrains%20Mono%20NL%20Regular%20Nerd%20Font%20Complete%20Mono%20Windows%20Compatible.ttf +if vim.loop.os_uname().sysname == 'Linux' then + opt.guifont= 'JetBrainsMono Nerd Font Mono:h7' +else + opt.guifont= 'JetBrainsMonoNL NF:h9' -- https://github.com/ryanoasis/nerd-fonts/blob/master/patched-fonts/JetBrainsMono/NoLigatures/Regular/complete/JetBrains%20Mono%20NL%20Regular%20Nerd%20Font%20Complete%20Mono%20Windows%20Compatible.ttf +end opt.swapfile= false opt.backup= false opt.spelllang= 'en,de'