1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 00:00:04 +08:00

fix(font): fix guifont setting

This commit is contained in:
wsdjeg 2023-05-30 21:47:32 +08:00
parent 3ee322d4b4
commit 663882498b
2 changed files with 1 additions and 17 deletions

View File

@ -425,7 +425,7 @@ let g:spacevim_lint_engine = 'neomake'
" >
" let g:spacevim_guifont = "SauceCodePro Nerd Font Mono:h11"
" <
let g:spacevim_guifont = ''
let g:spacevim_guifont = 'SauceCodePro Nerd Font Mono:h11'
""
" @section enable_ycm, options-enable_ycm

View File

@ -14,9 +14,6 @@ local guifont = ""
local function set_font(font)
vim.o.guifont = font
end
local function has_guioptions ()
vim.opt.guioptions:get()
end
function M.options()
logger.info("init default vim options")
@ -34,19 +31,6 @@ function M.options()
}
)
end
if SYSTEM.isWindows == 1 then
guifont = "DejaVu_Sans_Mono_for_Powerline:h11:cANSI:qDRAFT"
elseif SYSTEM.isOSX == 1 then
guifont = "DejaVu Sans Mono for Powerline:h11"
else
guifont = "DejaVu Sans Mono for Powerline 11"
end
local ok, errors = pcall(set_font, guifont)
if not ok then
print(errors)
end
end
-- indent use backspace delete indent, eol use backspace delete line at