From 4829cd7c078961081e020112a90a52115d564869 Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Sun, 15 Dec 2024 23:30:01 -0500 Subject: [PATCH] AutoYADM commit: 2024-12-15 23:30:01 --- .config/i3/config##hostname.dbox | 6 +++--- .config/nvim/init.lua | 14 +++++++++++- .config/nvim/lua/neovide-config.lua | 33 +++++++++++++++++++++++++++++ 3 files changed, 49 insertions(+), 4 deletions(-) diff --git a/.config/i3/config##hostname.dbox b/.config/i3/config##hostname.dbox index 5a960092..c4f178b4 100644 --- a/.config/i3/config##hostname.dbox +++ b/.config/i3/config##hostname.dbox @@ -596,9 +596,9 @@ bindsym $mod+d exec rofi -modi drun -show drun # -config ~/.config/rofi/rofidmenu.rasi ## rofi bindings for window menu ($mod+t /F10 optional disabled) - -bindsym $mod+t exec rofi -show window \ - -config ~/.config/rofi/rofidmenu.rasi +bindsym $mod+t exec neovide +# bindsym $mod+t exec rofi -show window \ +# -config ~/.config/rofi/rofidmenu.rasi #bindsym F10 exec rofi -show window \ # -config ~/.config/rofi/rofidmenu.rasi diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index 4601e1f7..cc4806bf 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -1,5 +1,17 @@ -- bootstrap lazy.nvim, LazyVim and your plugins require("config.lazy") if vim.g.neovide then - require("neovide-config").setup() + local nv_opts = { + cursor = { + animation_length = 0.05, + trail_size = 0.5, + animate_command_line = false, + }, + animations = { + position_animation_length = 0.10, + scroll_animation_length = 0.1, + hide_mouse_when_typing = true, + }, + } + require("neovide-config").setup(nv_opts) end diff --git a/.config/nvim/lua/neovide-config.lua b/.config/nvim/lua/neovide-config.lua index 03d6092c..0a31fba4 100644 --- a/.config/nvim/lua/neovide-config.lua +++ b/.config/nvim/lua/neovide-config.lua @@ -5,6 +5,23 @@ local defaults = { enabled = true, scale_factor = 1.1, }, + animations = { + position_animation_length = nil, + scroll_animation_length = nil, + scroll_animation_far_lines = nil, + hide_mouse_when_typing = nil, + underline_stroke_scale = nil, + }, + cursor = { + -- prefixed with neovide_cursor + animation_length = nil, + trail_size = nil, + antialiasing = nil, + animate_in_insert_mode = nil, + animate_command_line = nil, + unfocused_outline_width = nil, + smooth_blink = nil, + }, } M.setup = function(opts) @@ -20,6 +37,22 @@ M.setup = function(opts) change_scale_factor(1 / opts.font_maps.scale_factor) end) end + local animations = opts.animations + if animations then + for k, v in pairs(animations) do + if k ~= nil then + vim.g[k] = v + end + end + end + local cursor = opts.cursor + if cursor then + for k, v in pairs(cursor) do + if k ~= nil then + vim.g["neovide_cursor_" .. k] = v + end + end + end end return M