mirror of
https://github.com/Baipyrus/nvim-config.git
synced 2024-11-14 21:13:49 +00:00
surround neovide settings with UIEnter event, helps remote connections
This commit is contained in:
parent
6746dd6fbe
commit
5ad7502e88
@ -92,12 +92,17 @@ vim.opt.sidescrolloff = 12
|
|||||||
-- Set cursor pointer to block
|
-- Set cursor pointer to block
|
||||||
vim.opt.guicursor = 'n-v-i-c:block-Cursor'
|
vim.opt.guicursor = 'n-v-i-c:block-Cursor'
|
||||||
|
|
||||||
-- Options specifically targeted at Neovide
|
vim.api.nvim_create_autocmd('UIEnter', {
|
||||||
if vim.g.neovide then
|
group = vim.api.nvim_create_augroup('SetGUISettings', { clear = true }),
|
||||||
vim.o.guifont = 'CaskaydiaCove Nerd Font Mono:h14'
|
callback = function()
|
||||||
vim.g.neovide_hide_mouse_when_typing = true
|
-- Options specifically targeted at Neovide
|
||||||
vim.g.neovide_cursor_animation_length = 0
|
if vim.g.neovide then
|
||||||
vim.g.neovide_cursor_trail_length = 0
|
vim.o.guifont = 'CaskaydiaCove Nerd Font Mono:h14'
|
||||||
end
|
vim.g.neovide_hide_mouse_when_typing = true
|
||||||
|
vim.g.neovide_cursor_animation_length = 0
|
||||||
|
vim.g.neovide_cursor_trail_length = 0
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
-- vim: ts=2 sts=2 sw=2 et
|
-- vim: ts=2 sts=2 sw=2 et
|
||||||
|
Loading…
Reference in New Issue
Block a user