From 7d2974684e80d8f089454c6bbdc1cde1dc7afc78 Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Mon, 8 Apr 2024 11:39:46 +0200 Subject: [PATCH] optional neovide config --- lua/custom/plugins/neoscroll.lua | 1 + lua/options.lua | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/lua/custom/plugins/neoscroll.lua b/lua/custom/plugins/neoscroll.lua index 13d210b..61b9ac7 100644 --- a/lua/custom/plugins/neoscroll.lua +++ b/lua/custom/plugins/neoscroll.lua @@ -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, diff --git a/lua/options.lua b/lua/options.lua index 09cf853..47b05c8 100644 --- a/lua/options.lua +++ b/lua/options.lua @@ -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