perf(neovim): massive start up time improvements (~70 ms)

This commit is contained in:
Price Hiller 2022-09-28 22:50:45 -05:00
parent 1840d272d4
commit aa557b7d28
2 changed files with 37 additions and 22 deletions

View File

@ -136,12 +136,7 @@ vim.keymap.set("n", "<A-s>", ":BufferLineCycleNext<CR>", { silent = true, desc =
vim.keymap.set("n", "<A-x>", require("utils.funcs").close_buffer, { silent = true, desc = "Close Buffer" }) vim.keymap.set("n", "<A-x>", require("utils.funcs").close_buffer, { silent = true, desc = "Close Buffer" })
-- Vim Notify Mappings -- Vim Notify Mappings
vim.keymap.set( vim.keymap.set("n", "<leader>nv", ":Telescope notify<CR>", { silent = true, desc = "Notifications: Search" })
"n",
"<leader>nv",
require("telescope").extensions.notify.notify,
{ silent = true, desc = "Notifications: Search" }
)
vim.keymap.set("n", "<leader>nd", require("notify").dismiss, { silent = true, desc = "Notifications: Dismiss" }) vim.keymap.set("n", "<leader>nd", require("notify").dismiss, { silent = true, desc = "Notifications: Dismiss" })
-- Whichkey Mappings -- Whichkey Mappings

View File

@ -274,23 +274,17 @@ return packer.startup({
end, end,
}) })
-- Telescope Extensions
use({
"nvim-telescope/telescope-fzf-native.nvim",
run = "make",
})
use({
"nvim-telescope/telescope-media-files.nvim",
"nvim-telescope/telescope-file-browser.nvim",
"artart222/telescope_find_directories",
"nvim-telescope/telescope-ui-select.nvim",
{ "nvim-telescope/telescope-smart-history.nvim", requires = "tami5/sqlite.lua" },
})
-- Telescope -- Telescope
use({ use({
"nvim-telescope/telescope.nvim", "nvim-telescope/telescope.nvim",
requires = {
"nvim-telescope/telescope-media-files.nvim",
"nvim-telescope/telescope-file-browser.nvim",
"artart222/telescope_find_directories",
"nvim-telescope/telescope-ui-select.nvim",
{ "nvim-telescope/telescope-smart-history.nvim", requires = "tami5/sqlite.lua" },
{ "nvim-telescope/telescope-fzf-native.nvim", run = "make" },
},
config = function() config = function()
require("plugins.configs.telescope-nvim") require("plugins.configs.telescope-nvim")
end, end,
@ -312,6 +306,7 @@ return packer.startup({
config = function() config = function()
require("plugins.configs.neotree") require("plugins.configs.neotree")
end, end,
cmd = "Neotree",
}) })
-- Lspconfig -- Lspconfig
@ -409,7 +404,6 @@ return packer.startup({
"hrsh7th/cmp-path", "hrsh7th/cmp-path",
"hrsh7th/cmp-cmdline", "hrsh7th/cmp-cmdline",
"hrsh7th/cmp-emoji", "hrsh7th/cmp-emoji",
"hrsh7th/vim-vsnip",
"hrsh7th/cmp-nvim-lsp-document-symbol", "hrsh7th/cmp-nvim-lsp-document-symbol",
"hrsh7th/cmp-calc", "hrsh7th/cmp-calc",
"davidsierradz/cmp-conventionalcommits", "davidsierradz/cmp-conventionalcommits",
@ -592,6 +586,7 @@ return packer.startup({
}, },
}) })
end, end,
cmd = { "Neogit" },
requires = { requires = {
"sindrets/diffview.nvim", "sindrets/diffview.nvim",
}, },
@ -620,6 +615,7 @@ return packer.startup({
"nvim-neorg/neorg-telescope", "nvim-neorg/neorg-telescope",
}, },
after = "nvim-treesitter", after = "nvim-treesitter",
ft = "norg",
}) })
-- Log Syntax Highlighting -- Log Syntax Highlighting
@ -747,7 +743,12 @@ return packer.startup({
-- Better list continuation -- Better list continuation
use({ use({
"gaoDean/autolist.nvim", "gaoDean/autolist.nvim",
ft = "markdown", ft = {
"markdown",
"text",
"text",
"plaintex",
},
config = function() config = function()
require("autolist").setup({}) require("autolist").setup({})
end, end,
@ -799,6 +800,14 @@ return packer.startup({
}, },
}) })
end, end,
cmd = {
"ToggleTerm",
"ToggleTermSetName",
"ToggleTermToggleAll",
"ToggleTermSendCurrentLine",
"ToggleTermSendVisualLines",
"ToggleTermSendVisualSelection",
},
}) })
-- Take a screenshot of code selected -- Take a screenshot of code selected
@ -809,6 +818,10 @@ return packer.startup({
theme = "Coldark-Dark", theme = "Coldark-Dark",
} }
end, end,
cmd = {
"Silicon",
"SiliconHighlight",
},
}) })
-- Nice sidebar cursor goodies -- Nice sidebar cursor goodies
@ -850,6 +863,13 @@ return packer.startup({
config = function() config = function()
require("plugins.configs.ccc") require("plugins.configs.ccc")
end, end,
cmd = {
"CccPick",
"CccConvert",
"CccHighlighterEnable",
"CccHighlighterToggle",
"CccHighlighterDisable",
},
}) })
use({ use({