optional neovide config

This commit is contained in:
Baipyrus 2024-04-08 11:39:46 +02:00
parent 2e370c9c78
commit 7d2974684e
2 changed files with 8 additions and 0 deletions

View File

@ -1,6 +1,7 @@
-- Smooth scroll plugin and keymaps
return {
'karb94/neoscroll.nvim',
enabled = not vim.g.neovide,
config = function()
require('neoscroll').setup {
hide_cursor = false,

View File

@ -84,4 +84,11 @@ vim.opt.cursorline = true
vim.opt.scrolloff = 8
vim.opt.sidescrolloff = 12
-- Options specifically targeted at Neovide
if vim.g.neovide then
vim.o.guifont = 'CaskaydiaCove Nerd Font Mono:h14'
vim.g.neovide_cursor_animation_length = 0
vim.g.neovide_cursor_trail_length = 0
end
-- vim: ts=2 sts=2 sw=2 et