Update neovide stuff

This commit is contained in:
Alex Yatskov 2024-09-30 19:47:54 -07:00
parent b928935559
commit f564b88e64

View File

@ -1,13 +1,33 @@
if vim.fn.has('win32') == 1 then
if vim.g.neovide then
vim.g.neovide_cursor_trail_size = 0.05
if vim.g.neovide then
vim.g.neovide_floating_blur_amount_x = 0.0
vim.g.neovide_floating_blur_amount_y = 0.0
vim.g.neovide_cursor_animate_command_line = false
vim.g.neovide_cursor_animate_in_insert_mode = false
vim.g.neovide_cursor_animation_length = 0.0
vim.g.neovide_cursor_trail_size = 0
vim.g.neovide_position_animation_length = 0
vim.g.neovide_scroll_animation_far_lines = 0
vim.g.neovide_scroll_animation_length = 0.0
if vim.fn.has('win32') == 1 then
vim.o.guifont = 'Cascadia Mono:h14'
elseif vim.fn.has(':GuiTabline') then
vim.cmd.GuiTabline(0)
elseif vim.fn.has('unix') == 1 then
vim.o.guifont = 'Monospace:h14'
end
else
if vim.fn.has(':GuiPopupmenu') then
vim.cmd.GuiPopupmenu(0)
vim.cmd.GuiFont({
args = {'Cascadia Mono:h10'},
bang = true
})
end
if vim.fn.has(':GuiTabline') then
vim.cmd.GuiTabline(0)
end
if vim.fn.has(':GuiFont') == 1 then
if vim.fn.has('win32') == 1 then
vim.cmd.GuiFont({args = {'Cascadia Mono:h10'}, bang = true})
elseif vim.fn.has('unix') == 1 then
vim.o.guifont = 'Monospace:h10'
end
end
end