pkg(nixvim): Move neovide configuration to single file
This commit is contained in:
parent
44cbe023d0
commit
96c4fb932d
2 changed files with 33 additions and 29 deletions
33
pkgs/nixvim/neovide.nix
Normal file
33
pkgs/nixvim/neovide.nix
Normal file
|
|
@ -0,0 +1,33 @@
|
||||||
|
{...}: {
|
||||||
|
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_text_gamma = 0.8
|
||||||
|
vim.g.neovide_text_contrast = 0.1
|
||||||
|
|
||||||
|
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
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
|
@ -31,34 +31,5 @@ makeNixvimWithModule {
|
||||||
};
|
};
|
||||||
wrapRc = true;
|
wrapRc = true;
|
||||||
luaLoader.enable = 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
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue