From 898271a3ad9dd0b55ccf792a2f47a7c812d14b52 Mon Sep 17 00:00:00 2001 From: Maciej Jur Date: Wed, 17 Jan 2024 18:35:10 +0100 Subject: [PATCH] feat(neovide): fix scaling issues --- bash/.bashrc | 4 ++-- nvim/lua/neovide.lua | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/bash/.bashrc b/bash/.bashrc index 4417803..0509279 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -31,8 +31,8 @@ export GPG_TTY=$(tty) # Configure editor export VISUAL="$(command -v nvim 2>/dev/null)" export EDITOR="$(command -v nvim 2>/dev/null || command -v vim 2>/dev/null || command -v nano)" -[ -x "$(command -v nvim 2> /dev/null)" ] && alias vim='nvim' -[ -x "$(command -v neovide 2> /dev/null)" ] && alias nvim='neovide' +[ -x "$(command -v nvim 2> /dev/null)" ] && alias vim='nvim' +[ -x "$(command -v neovide 2> /dev/null)" ] && alias nvim='WINIT_X11_SCALE_FACTOR=1.0 neovide' # ghcup (Haskell) [ -f "$HOME/.ghcup/env" ] && source "$HOME/.ghcup/env" # ghcup-env diff --git a/nvim/lua/neovide.lua b/nvim/lua/neovide.lua index 19e8c26..6deee26 100644 --- a/nvim/lua/neovide.lua +++ b/nvim/lua/neovide.lua @@ -1,5 +1,4 @@ local options = { - scale_factor = 0.75, scroll_animation_far_lines = 100, scroll_animation_length = 0.05, cursor_animation_length = 0.05,