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 -- Entry point of neovim configuration
require("config.options") require("config.options")
if vim.g.vscode then -- TODO: VSCode Neovim Integration
require("config.vscode")
else -- Vanilla neovim
require("config.plugins") require("config.plugins")
require("config.colorscheme") require("config.colorscheme")
end
require("config.keymaps") require("config.keymaps")
require("config.diagnostics") 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

View file

@ -45,6 +45,7 @@ local M = {
TypeParameter = "󰅲", TypeParameter = "󰅲",
Copilot = "", Copilot = "",
}, },
telescope = "",
} }
return M return M

View file

@ -0,0 +1,16 @@
require("plugins.lazy-nvim")
require("lazy").setup({
spec = {
-- import your plugins
-- { import = "plugins.completion" },
-- { import = "plugins.fileutils" },
-- { import = "plugins.lsp" },
-- { import = "plugins.edit" },
-- { import = "plugins.misc" },
},
-- Configure any other settings here. See the documentation for more details.
-- colorscheme that will be used when installing plugins.
-- automatically check for plugin updates
checker = { enabled = true },
})

View file

@ -1,6 +1,4 @@
-- Debugger setups -- Debugger setups
return { return {
{ { import = "plugins.mod.dap-setup" },
"mfussenegger/nvim-dap",
}
} }

View file

@ -20,19 +20,21 @@ return {
{ {
"echasnovski/mini.pairs", "echasnovski/mini.pairs",
version = false, version = false,
config = function() opts = {},
require("mini.pairs").setup() -- config = function()
end, -- require("mini.pairs").setup()
-- end,
}, },
{ {
"kylechui/nvim-surround", "kylechui/nvim-surround",
version = "*", -- Use for stability; omit to use `main` branch for the latest features version = "*", -- Use for stability; omit to use `main` branch for the latest features
event = "VeryLazy", event = "VeryLazy",
config = function() opts = {},
require("nvim-surround").setup({ -- config = function()
-- Configuration here, or leave empty to use defaults -- require("nvim-surround").setup({
}) -- -- Configuration here, or leave empty to use defaults
end, -- })
-- end,
}, },
{ {
"MagicDuck/grug-far.nvim", "MagicDuck/grug-far.nvim",

View file

@ -1,2 +1,18 @@
-- Entry point of the plugin manager
require("plugins.lazy-nvim") require("plugins.lazy-nvim")
-- Setup lazy.nvim
require("lazy").setup({
spec = {
-- import your plugins
{ import = "plugins.appearance" },
{ import = "plugins.completion" },
{ import = "plugins.fileutils" },
{ import = "plugins.lsp" },
{ import = "plugins.edit" },
{ import = "plugins.misc" },
},
-- Configure any other settings here. See the documentation for more details.
-- colorscheme that will be used when installing plugins.
-- automatically check for plugin updates
checker = { enabled = true },
})

View file

@ -20,21 +20,3 @@ vim.opt.rtp:prepend(lazypath)
-- This is also a good place to setup other settings (vim.opt) -- This is also a good place to setup other settings (vim.opt)
vim.g.mapleader = " " vim.g.mapleader = " "
vim.g.maplocalleader = "\\" vim.g.maplocalleader = "\\"
-- Setup lazy.nvim
require("lazy").setup({
spec = {
-- import your plugins
{ import = "plugins.appearance" },
{ import = "plugins.completion" },
{ import = "plugins.fileutils" },
{ import = "plugins.dap" },
{ import = "plugins.lsp" },
{ import = "plugins.edit" },
{ import = "plugins.misc" },
},
-- Configure any other settings here. See the documentation for more details.
-- colorscheme that will be used when installing plugins.
-- automatically check for plugin updates
checker = { enabled = true },
})

View file

@ -0,0 +1,3 @@
return {
"mfussenegger/nvim-dap",
}