Add neovide support for neovim

This commit is contained in:
ulic-youthlic 2025-07-13 06:04:55 +08:00
parent d242144445
commit cf90eede7e
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
4 changed files with 32 additions and 0 deletions

View file

@ -482,6 +482,7 @@ in
(window-rule [
(match [{app-id = "^Alacritty$";}])
(match [{app-id = "^com\\.mitchellh\\.ghostty$";}])
(match [{app-id = "^neovide$";}])
(leaf "draw-border-with-background" [false])
])
(window-rule [

View file

@ -60,6 +60,7 @@
zulip
wechat
nixvim
neovide
];
environment.variables.EDITOR = "hx";

View file

@ -91,6 +91,7 @@
wineWow64Packages.waylandFull
iperf3
nixvim
neovide
sbctl
];

View file

@ -25,5 +25,34 @@ makeNixvimWithModule {
};
wrapRc = true;
luaLoader.enable = true;
extraConfigLua =
#lua
''
if vim.g.neovide then
vim.o.guifont = [[Maple\ Mono\ NF\ CN,Noto Color Emoji:h16]]
vim.g.neovide_opacity = 0.9
vim.g.linespace = 0.2
vim.g.neovide_floating_shadow = true
vim.g.neovide_floating_z_height = 10
vim.g.neovide_light_angle_degrees = 45
vim.g.neovide_light_radius = 5
vim.g.neovide_position_animation_length = 0.1
vim.g.neovide_scroll_animation_length = 0.2
vim.g.neovide_scroll_animation_far_lines = 5
vim.g.neovide_hide_mouse_when_typing = true
vim.g.neovide_refresh_rate = 120
vim.g.neovide_confirm_quit = true
vim.g.neovide_input_ime = true
vim.g.neovide_cursor_animation_length = 0.1
vim.g.neovide_cursor_short_animation_length = 0.04
vim.g.neovide_cursor_antialiasing = true
vim.g.neovide_cursor_animate_in_insert_mode = true
vim.g.neovide_cursor_animate_command_line = true
vim.g.neovide_cursor_unfocused_outline_width = 0.125
end
'';
};
}