You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.1 KiB
40 lines
1.1 KiB
vim.opt.guifont = { "FiraCode Nerd Font" }
|
|
|
|
vim.g.neovide_opacity = 0.3
|
|
vim.g.neovide_normal_opacity = 0.6
|
|
vim.g.neovide_window_blurred = true
|
|
|
|
vim.g.neovide_hide_mouse_when_typing = true
|
|
vim.g.neovide_fullscreen = false
|
|
vim.g.neovide_remember_window_size = true
|
|
|
|
vim.g.neovide_refresh_rate = 60
|
|
vim.g.neovide_refresh_rate_idle = 5
|
|
vim.g.neovide_no_idle = false
|
|
--vim.g.neovide_profiler = true
|
|
|
|
vim.g.neovide_cursor_smooth_blink = true
|
|
vim.g.neovide_cursor_vfx_mode = "torpedo"
|
|
vim.g.neovide_cursor_vfx_particle_lifetime = 3.0
|
|
vim.g.neovide_cursor_vfx_particle_density = 4.5
|
|
|
|
vim.g.neovide_floating_shadow = true
|
|
|
|
local function set_ime(args)
|
|
if args.event:match("Enter$") then
|
|
vim.g.neovide_input_ime = true
|
|
else
|
|
vim.g.neovide_input_ime = false
|
|
end
|
|
end
|
|
local ime_input = vim.api.nvim_create_augroup("ime_input", { clear = true })
|
|
vim.api.nvim_create_autocmd({"InsertEnter", "InsertLeave"}, {
|
|
group = ime_input,
|
|
pattern = "*",
|
|
callback = set_ime,
|
|
})
|
|
vim.api.nvim_create_autocmd({"CmdlineEnter", "CmdlineLeave"}, {
|
|
group = ime_input,
|
|
pattern = "[/\\?]",
|
|
callback = set_ime,
|
|
})
|
|
|