Optimize startup time and make some minor refactorings
This commit is contained in:
parent
f8faa2f5c1
commit
456fc0da59
23 changed files with 69 additions and 11 deletions
|
|
@ -1,5 +1,7 @@
|
|||
return {
|
||||
"otavioschwanck/arrow.nvim",
|
||||
event = "VeryLazy",
|
||||
lazy = true,
|
||||
opts = {
|
||||
show_icons = true,
|
||||
leader_key = ",",
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ return {
|
|||
"hrsh7th/cmp-path",
|
||||
"hrsh7th/cmp-cmdline",
|
||||
},
|
||||
event = "InsertEnter",
|
||||
config = function()
|
||||
local cmp = require("cmp")
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
return {
|
||||
"mistricky/codesnap.nvim",
|
||||
build = "make",
|
||||
event = "VeryLazy",
|
||||
lazy = true,
|
||||
config = function()
|
||||
require("codesnap").setup({
|
||||
mac_window_bar = true,
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
return {
|
||||
"norcalli/nvim-colorizer.lua",
|
||||
event = "VeryLazy",
|
||||
lazy = true,
|
||||
opts = {
|
||||
DEFAULT_OPTIONS = {
|
||||
RGB = true,
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
return {
|
||||
"github/copilot.vim",
|
||||
event = "InsertEnter",
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
return {
|
||||
"nvim-tree/nvim-web-devicons",
|
||||
event = "VeryLazy",
|
||||
lazy = true,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
return {
|
||||
"ggandor/flit.nvim",
|
||||
event = "VeryLazy",
|
||||
lazy = true,
|
||||
opts = {
|
||||
keys = { f = "f", F = "F", t = "t", T = "T" },
|
||||
labeled_modes = "v",
|
||||
|
|
|
|||
|
|
@ -3,6 +3,8 @@ return {
|
|||
dependencies = {
|
||||
"lewis6991/gitsigns.nvim"
|
||||
},
|
||||
event = "VeryLazy",
|
||||
lazy = true,
|
||||
config = function()
|
||||
require("gitsigns").setup({})
|
||||
local devicons = require("nvim-web-devicons")
|
||||
|
|
@ -89,5 +91,4 @@ return {
|
|||
})
|
||||
})
|
||||
end,
|
||||
event = "VeryLazy",
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
return {
|
||||
"lukas-reineke/indent-blankline.nvim",
|
||||
main = "ibl",
|
||||
event = "BufRead",
|
||||
opts = {
|
||||
debounce = 100,
|
||||
scope = {
|
||||
|
|
|
|||
|
|
@ -22,6 +22,8 @@ return {
|
|||
dependencies = {
|
||||
"tpope/vim-repeat",
|
||||
},
|
||||
event = "VeryLazy",
|
||||
lazy = true,
|
||||
config = function()
|
||||
local leap = require("leap")
|
||||
leap.opts.safe_labels = {}
|
||||
|
|
|
|||
|
|
@ -1,9 +1,11 @@
|
|||
return {
|
||||
"nvimdev/lspsaga.nvim",
|
||||
event = "LspAttach",
|
||||
lazy = true,
|
||||
dependencies = {
|
||||
"nvim-tree/nvim-web-devicons",
|
||||
},
|
||||
after = "nvim-lspconfig",
|
||||
config = function()
|
||||
require("lspsaga").setup({
|
||||
symbol_in_winbar = {
|
||||
|
|
|
|||
|
|
@ -13,6 +13,8 @@ return {
|
|||
dependencies = {
|
||||
"nvim-tree/nvim-web-devicons"
|
||||
},
|
||||
event = "VeryLazy",
|
||||
lazy = true,
|
||||
config = function()
|
||||
local catppuccin_theme = require("lualine.themes.catppuccin")
|
||||
local slightly_darker_surface0 = "#2c3045"
|
||||
|
|
|
|||
|
|
@ -87,10 +87,19 @@ local function setup_dap()
|
|||
require("nvim-dap-repl-highlights").setup()
|
||||
require("nvim-dap-virtual-text").setup()
|
||||
|
||||
local dap = require("dap")
|
||||
utils.add_keymaps({
|
||||
n = {
|
||||
["<leader>dr"] = { cmd = ":lua require(\"dap\").continue()<CR>" },
|
||||
["<leader>db"] = { cmd = ":lua require(\"dap\").toggle_breakpoint()<CR>" },
|
||||
["<leader>dr"] = {
|
||||
cmd = function()
|
||||
dap.continue()
|
||||
end
|
||||
},
|
||||
["<leader>db"] = {
|
||||
cmd = function()
|
||||
dap.toggle_breakpoint()
|
||||
end
|
||||
},
|
||||
["<leader>ds"] = {
|
||||
cmd = function()
|
||||
dap.disconnect({ terminateDebuggee = true })
|
||||
|
|
@ -98,9 +107,21 @@ local function setup_dap()
|
|||
dapui.close()
|
||||
end
|
||||
},
|
||||
["<F10>"] = { cmd = ":lua require(\"dap\").step_over()<CR>" },
|
||||
["<F11>"] = { cmd = ":lua require(\"dap\").step_into()<CR>" },
|
||||
["<F12>"] = { cmd = ":lua require(\"dap\").step_out()<CR>" },
|
||||
["<F10>"] = {
|
||||
cmd = function()
|
||||
dap.step_over()
|
||||
end
|
||||
},
|
||||
["<F11>"] = {
|
||||
cmd = function()
|
||||
dap.step_into()
|
||||
end
|
||||
},
|
||||
["<F12>"] = {
|
||||
cmd = function()
|
||||
dap.step_out()
|
||||
end
|
||||
},
|
||||
}
|
||||
})
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
return {
|
||||
"NeogitOrg/neogit",
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
"sindrets/diffview.nvim",
|
||||
"nvim-telescope/telescope.nvim",
|
||||
},
|
||||
event = "VeryLazy",
|
||||
lazy = true,
|
||||
config = true
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
return {
|
||||
"nvim-neorg/neorg",
|
||||
opts = {}
|
||||
opts = {},
|
||||
event = "VeryLazy",
|
||||
lazy = true,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,9 @@
|
|||
return {
|
||||
"folke/noice.nvim",
|
||||
event = "VeryLazy",
|
||||
lazy = true,
|
||||
dependencies = {
|
||||
"MunifTanjim/nui.nvim",
|
||||
{ "MunifTanjim/nui.nvim", lazy = true },
|
||||
{
|
||||
"rcarriga/nvim-notify",
|
||||
opts = {
|
||||
|
|
|
|||
|
|
@ -30,6 +30,8 @@ end
|
|||
|
||||
return {
|
||||
"stevearc/oil.nvim",
|
||||
event = "VeryLazy",
|
||||
lazy = true,
|
||||
config = function()
|
||||
oil = require("oil")
|
||||
oil.setup({
|
||||
|
|
|
|||
4
home/.config/nvim/lua/plugs/plenary.lua
Normal file
4
home/.config/nvim/lua/plugs/plenary.lua
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
return {
|
||||
"nvim-lua/plenary.nvim",
|
||||
lazy = true,
|
||||
}
|
||||
|
|
@ -1,5 +1,7 @@
|
|||
return {
|
||||
"rasulomaroff/reactive.nvim",
|
||||
event = "VeryLazy",
|
||||
lazy = true,
|
||||
opts = {
|
||||
load = {
|
||||
"catppuccin-macchiato-cursor",
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ return {
|
|||
"kylechui/nvim-surround",
|
||||
version = "*",
|
||||
event = "VeryLazy",
|
||||
lazy = true,
|
||||
opts = {
|
||||
-- Make sure that we never get whitespaces when adding surroundings
|
||||
surrounds = {
|
||||
|
|
|
|||
|
|
@ -1,13 +1,14 @@
|
|||
return {
|
||||
"nvim-telescope/telescope.nvim",
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
{
|
||||
"nvim-telescope/telescope-fzf-native.nvim",
|
||||
build =
|
||||
"cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release && cmake --install build --prefix build",
|
||||
}
|
||||
},
|
||||
event = "VeryLazy",
|
||||
lazy = true,
|
||||
config = function()
|
||||
require("telescope").setup({
|
||||
extensions = {
|
||||
|
|
|
|||
|
|
@ -80,6 +80,8 @@ end
|
|||
|
||||
return {
|
||||
"folke/trouble.nvim",
|
||||
event = "VeryLazy",
|
||||
lazy = true,
|
||||
config = function()
|
||||
local trouble = require("trouble")
|
||||
trouble.setup({})
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
return {
|
||||
"mbbill/undotree",
|
||||
event = "VeryLazy",
|
||||
lazy = true,
|
||||
config = function()
|
||||
require("utils").add_keymaps({
|
||||
n = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue