AutoYADM commit: 2024-12-15 23:30:01

This commit is contained in:
Daniel Fichtinger 2024-12-15 23:30:01 -05:00
parent 5f4533524b
commit 4829cd7c07
3 changed files with 49 additions and 4 deletions

View file

@ -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

View file

@ -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

View file

@ -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