-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path8-neovide.lua
44 lines (41 loc) · 1.68 KB
/
8-neovide.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
local MiniDeps = require("mini.deps")
local later = MiniDeps.later
local Util = require("module.util")
if vim.g.neovide then
later(function()
vim.g.neovide_detach_on_quit = "always_detach"
vim.g.neovide_floating_corner_radius = 0.333
vim.g.neovide_transparency = 0.91247
vim.g.neovide_theme = "auto"
-- Background is none and comes from the terminal.
-- When running Neovide, it must be set.
-- These are bespoke to specific colorschemes.
-- vim.notify(vim.g.colors_name, "info")
if vim.g.colors_name == "catppuccin-frappe" then
local colors = require("catppuccin.palettes").get_palette("frappe")
vim.api.nvim_set_hl(0, "Normal", { bg = colors.base })
Util.set_cursor_colors(colors)
Util.set_term_colors(colors)
end
if vim.g.colors_name == "catppuccin-latte" then
local colors = require("catppuccin.palettes").get_palette("latte")
vim.api.nvim_set_hl(0, "Normal", { bg = colors.base })
Util.set_cursor_colors(colors)
Util.set_term_colors(colors)
end
if vim.g.colors_name == "tokyonight-night" then
local colors = require("tokyonight.colors").setup()
vim.api.nvim_set_hl(0, "Normal", { bg = colors.bg })
Util.set_cursor_colors(colors)
Util.set_term_colors(colors)
end
vim.g.neovide_cursor_animate_in_insert_mode = true
vim.g.neovide_cursor_animate_command_line = true
vim.g.neovide_cursor_smooth_blink = true
vim.g.neovide_cursor_vfx_mode = "railgun"
vim.g.neovide_cursor_vfx_particle_curl = 0.66
vim.g.neovide_cursor_vfx_particle_density = 23.0
vim.g.neovide_cursor_vfx_particle_lifetime = 1.33
vim.g.neovide_cursor_vfx_particle_phase = 11.1
end)
end