feat(nvim): Neovide integration

This commit is contained in:
js0ny 2025-02-23 19:52:54 +00:00
parent 48a93e2998
commit cb81dc8d53
8 changed files with 71 additions and 32 deletions

View file

@ -8,7 +8,28 @@
-- Entry point of neovim configuration
require("config.options")
require("config.plugins")
require("config.colorscheme")
if vim.g.vscode then -- TODO: VSCode Neovim Integration
require("config.vscode")
else -- Vanilla neovim
require("config.plugins")
require("config.colorscheme")
end
require("config.keymaps")
require("config.diagnostics")
-- If current session is spawn by neovide, do:
if vim.g.neovide then
-- Enable input method
vim.g.neovide_input_ime = true
vim.g.neovide_transparency = 0.85
vim.g.transparency = 0.85
vim.g.neovide_normal_opacity = 0.85
vim.g.neovide_window_blurred = true -- macOS only
vim.g.neovide_floating_blur_amount_x = 2.0
vim.g.neovide_floating_blur_amount_y = 2.0
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_input_macos_option_key_is_meta = "only_left"
end