Chante nvim plugins loading options to improve startup time

This commit is contained in:
Alexander Navarro 2024-03-22 21:12:38 -03:00
parent 7b46aae1a1
commit cc3b1be7a6
10 changed files with 11 additions and 13 deletions

View file

@ -27,7 +27,7 @@ opt.number = true -- Print line number
opt.pumblend = 10 -- Popup blend opt.pumblend = 10 -- Popup blend
opt.pumheight = 10 -- Maximum number of entries in a popup opt.pumheight = 10 -- Maximum number of entries in a popup
opt.relativenumber = true -- Relative line numbers opt.relativenumber = true -- Relative line numbers
opt.scrolloff = 1000 -- Lines of context opt.scrolloff = 15 -- Lines of context
opt.sessionoptions = { "buffers", "curdir", "tabpages", "winsize" } opt.sessionoptions = { "buffers", "curdir", "tabpages", "winsize" }
opt.shiftround = true -- Round indent opt.shiftround = true -- Round indent
opt.shiftwidth = 2 -- Size of an indent opt.shiftwidth = 2 -- Size of an indent

View file

@ -1,6 +1,5 @@
return { return {
"jackMort/ChatGPT.nvim", "jackMort/ChatGPT.nvim",
event = "VeryLazy",
opts = { opts = {
api_key_cmd = nil, api_key_cmd = nil,
yank_register = "+", yank_register = "+",

View file

@ -8,7 +8,7 @@ return { -- Change colors.none if not using a transparent background
integrations = { integrations = {
cmp = true, cmp = true,
notify = true, notify = true,
harpoon = true, harpoon = false,
mason = true, mason = true,
neogit = true, neogit = true,
noice = true, noice = true,

View file

@ -33,7 +33,7 @@ return {
}, },
{ {
"danymat/neogen", "danymat/neogen",
config = { snippet_engine = "luasnip" }, opts = { snippet_engine = "luasnip" },
dependencies = { "nvim-treesitter/nvim-treesitter" }, dependencies = { "nvim-treesitter/nvim-treesitter" },
version = "*", -- stable releases version = "*", -- stable releases
keys = { keys = {

View file

@ -60,7 +60,6 @@ return {
"nvim-lua/plenary.nvim", -- required "nvim-lua/plenary.nvim", -- required
"nvim-telescope/telescope.nvim", -- optional "nvim-telescope/telescope.nvim", -- optional
"sindrets/diffview.nvim", -- optional "sindrets/diffview.nvim", -- optional
"ibhagwan/fzf-lua", -- optional
}, },
config = true, config = true,
opts = { opts = {

View file

@ -1,6 +1,7 @@
return { return {
-- Detect tabstop and shiftwidth automatically -- Detect tabstop and shiftwidth automatically
"tpope/vim-sleuth", "tpope/vim-sleuth",
{ "nvim-tree/nvim-web-devicons", lazy = true },
{ {
"mbbill/undotree", "mbbill/undotree",
config = function() config = function()
@ -23,6 +24,7 @@ return {
}, },
{ "nvim-treesitter/nvim-treesitter-context" }, { "nvim-treesitter/nvim-treesitter-context" },
{ {
-- Color Picker
"uga-rosa/ccc.nvim", "uga-rosa/ccc.nvim",
event = "VeryLazy", event = "VeryLazy",
opts = { opts = {

View file

@ -1,6 +1,7 @@
return { return {
-- LSP Configuration & Plugins -- LSP Configuration & Plugins
"neovim/nvim-lspconfig", "neovim/nvim-lspconfig",
event = { "BufReadPost", "BufNewFile", "BufWritePre" },
dependencies = { dependencies = {
-- Automatically install LSPs to stdpath for neovim -- Automatically install LSPs to stdpath for neovim
{ "williamboman/mason.nvim" }, { "williamboman/mason.nvim" },

View file

@ -1,5 +1,8 @@
return { return {
"williamboman/mason.nvim", "williamboman/mason.nvim",
cmd = "Mason",
keys = { { "<leader>cm", "<cmd>Mason<cr>", desc = "Mason" } },
build = ":MasonUpdate",
opts = { opts = {
ensure_installed = { ensure_installed = {
"eslint_d", "eslint_d",

View file

@ -2,14 +2,7 @@ return {
{ {
"kevinhwang91/nvim-bqf", "kevinhwang91/nvim-bqf",
event = "VeryLazy", event = "VeryLazy",
dependencies = { dependencies = {},
{
"junegunn/fzf",
build = function()
vim.fn["fzf#install"]()
end,
},
},
config = function() config = function()
local fn = vim.fn local fn = vim.fn

View file

@ -1,6 +1,7 @@
return { return {
-- Highlight, edit, and navigate code -- Highlight, edit, and navigate code
"nvim-treesitter/nvim-treesitter", "nvim-treesitter/nvim-treesitter",
event = { "BufReadPost", "BufNewFile", "BufWritePre", "VeryLazy" },
dependencies = { dependencies = {
"nvim-treesitter/nvim-treesitter-textobjects", "nvim-treesitter/nvim-treesitter-textobjects",
"windwp/nvim-ts-autotag", "windwp/nvim-ts-autotag",