mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-09 08:50:06 +08:00
fix(font): fix guifont setting
This commit is contained in:
parent
3ee322d4b4
commit
663882498b
@ -425,7 +425,7 @@ let g:spacevim_lint_engine = 'neomake'
|
|||||||
" >
|
" >
|
||||||
" let g:spacevim_guifont = "SauceCodePro Nerd Font Mono:h11"
|
" 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
|
" @section enable_ycm, options-enable_ycm
|
||||||
|
@ -14,9 +14,6 @@ local guifont = ""
|
|||||||
local function set_font(font)
|
local function set_font(font)
|
||||||
vim.o.guifont = font
|
vim.o.guifont = font
|
||||||
end
|
end
|
||||||
local function has_guioptions ()
|
|
||||||
vim.opt.guioptions:get()
|
|
||||||
end
|
|
||||||
|
|
||||||
function M.options()
|
function M.options()
|
||||||
logger.info("init default vim options")
|
logger.info("init default vim options")
|
||||||
@ -34,19 +31,6 @@ function M.options()
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
end
|
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
|
end
|
||||||
|
|
||||||
-- indent use backspace delete indent, eol use backspace delete line at
|
-- indent use backspace delete indent, eol use backspace delete line at
|
||||||
|
Loading…
Reference in New Issue
Block a user