mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
feat(nvim): Neovide integration
This commit is contained in:
parent
48a93e2998
commit
cb81dc8d53
8 changed files with 71 additions and 32 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -45,6 +45,7 @@ local M = {
|
|||
TypeParameter = "",
|
||||
Copilot = "",
|
||||
},
|
||||
telescope = " ",
|
||||
}
|
||||
|
||||
return M
|
||||
|
|
|
|||
16
tools/nvim/lua/config/vscode.lua
Normal file
16
tools/nvim/lua/config/vscode.lua
Normal 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 },
|
||||
})
|
||||
|
|
@ -1,6 +1,4 @@
|
|||
-- Debugger setups
|
||||
return {
|
||||
{
|
||||
"mfussenegger/nvim-dap",
|
||||
}
|
||||
{ import = "plugins.mod.dap-setup" },
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,19 +20,21 @@ return {
|
|||
{
|
||||
"echasnovski/mini.pairs",
|
||||
version = false,
|
||||
config = function()
|
||||
require("mini.pairs").setup()
|
||||
end,
|
||||
opts = {},
|
||||
-- config = function()
|
||||
-- require("mini.pairs").setup()
|
||||
-- end,
|
||||
},
|
||||
{
|
||||
"kylechui/nvim-surround",
|
||||
version = "*", -- Use for stability; omit to use `main` branch for the latest features
|
||||
event = "VeryLazy",
|
||||
config = function()
|
||||
require("nvim-surround").setup({
|
||||
-- Configuration here, or leave empty to use defaults
|
||||
})
|
||||
end,
|
||||
opts = {},
|
||||
-- config = function()
|
||||
-- require("nvim-surround").setup({
|
||||
-- -- Configuration here, or leave empty to use defaults
|
||||
-- })
|
||||
-- end,
|
||||
},
|
||||
{
|
||||
"MagicDuck/grug-far.nvim",
|
||||
|
|
|
|||
|
|
@ -1,2 +1,18 @@
|
|||
-- Entry point of the plugin manager
|
||||
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 },
|
||||
})
|
||||
|
|
|
|||
|
|
@ -20,21 +20,3 @@ vim.opt.rtp:prepend(lazypath)
|
|||
-- This is also a good place to setup other settings (vim.opt)
|
||||
vim.g.mapleader = " "
|
||||
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 },
|
||||
})
|
||||
|
|
|
|||
3
tools/nvim/lua/plugins/mod/dap-setup.lua
Normal file
3
tools/nvim/lua/plugins/mod/dap-setup.lua
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
return {
|
||||
"mfussenegger/nvim-dap",
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue