nvim lazyloading fixes
This commit is contained in:
parent
ba29d552b3
commit
93a0555eb9
18 changed files with 61 additions and 18 deletions
|
@ -16,6 +16,7 @@ M.sections = {
|
|||
e = { desc = icons.FileTree .. " File Manager" },
|
||||
}
|
||||
|
||||
-- TODO: Move these to LazyKeysSpec tables
|
||||
M.standard_maps = function()
|
||||
local maps = f.empty_map_table()
|
||||
-- Standard --
|
||||
|
|
|
@ -329,4 +329,7 @@ function M.get_lsp_key(key)
|
|||
end
|
||||
end
|
||||
|
||||
function M.lazy_file()
|
||||
end
|
||||
|
||||
return M
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
local M = { "rcarriga/cmp-dap" }
|
||||
|
||||
M.event = { "VeryLazy" }
|
||||
|
||||
M.dependencies = { "nvim-cmp" }
|
||||
|
||||
M.config = function()
|
||||
require("cmp").setup.filetype({ "dap-repl", "dapui_watches", "dapui_hover" }, {
|
||||
sources = {
|
||||
|
|
|
@ -4,12 +4,14 @@ local icons = require("config.icons")
|
|||
M.opts = {
|
||||
dev = {
|
||||
path = (os.getenv("XDG_DOCUMENTS_DIR") or "~/Documents") .. "/dev/nvim",
|
||||
patterns = { "ssnailed" },
|
||||
},
|
||||
install = {
|
||||
missing = true,
|
||||
colorscheme = { "tokyonight" },
|
||||
},
|
||||
ui = {
|
||||
title = "packages",
|
||||
border = "single",
|
||||
icons = {
|
||||
cmd = icons.Console .. " ",
|
||||
|
@ -29,6 +31,26 @@ M.opts = {
|
|||
task = icons.Task,
|
||||
},
|
||||
},
|
||||
change_detection = {
|
||||
enabled = false,
|
||||
},
|
||||
checker = {
|
||||
enabled = true,
|
||||
},
|
||||
disabled_plugins = {
|
||||
"gzip",
|
||||
-- "matchit",
|
||||
"matchparen",
|
||||
"netrwPlugin",
|
||||
"tarPlugin",
|
||||
-- "tohtml",
|
||||
"tutor",
|
||||
"zipPlugin",
|
||||
},
|
||||
profiling = {
|
||||
loader = true,
|
||||
require = true,
|
||||
}
|
||||
}
|
||||
|
||||
return M
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
local M = { "stevearc/aerial.nvim" }
|
||||
|
||||
M.event = { "BufReadPost", "BufNewFile", "BufNew" }
|
||||
M.event = { "BufReadPost", "BufNewFile", "BufWritePre" }
|
||||
|
||||
M.opts = {
|
||||
attach_mode = "global",
|
||||
|
|
|
@ -4,7 +4,7 @@ local serverconf = require("config.lsp")
|
|||
|
||||
M.dependencies = { "mason.nvim", "neoconf.nvim", "neodev.nvim" }
|
||||
|
||||
M.event = { "BufReadPost", "BufNewFile", "BufNew" }
|
||||
M.event = { "BufReadPost", "BufNewFile", "BufWritePre" }
|
||||
|
||||
M.cmd = { "LspInstall", "LspUninstall" }
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
local M = { "nvimtools/none-ls.nvim" }
|
||||
|
||||
M.event = { "BufReadPost", "BufNewFile", "BufNew" }
|
||||
M.event = { "BufReadPost", "BufNewFile", "BufWritePre" }
|
||||
|
||||
M.dependencies = { "mason-null-ls.nvim" }
|
||||
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
local M = { "goolord/alpha-nvim" }
|
||||
|
||||
M.lazy = true
|
||||
|
||||
M.event = { "VimEnter" }
|
||||
|
||||
M.dependencies = { "telescope.nvim", "todo-comments.nvim" }
|
||||
|
||||
M.opts = function()
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
local M = { "windwp/nvim-autopairs" }
|
||||
|
||||
M.event = { "BufReadPost", "BufNewFile", "BufNew" }
|
||||
M.lazy = true
|
||||
|
||||
M.event = { "VeryLazy" }
|
||||
|
||||
M.opts = {
|
||||
check_ts = true,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
local M = { "akinsho/bufferline.nvim" }
|
||||
|
||||
M.event = { "BufReadPost", "BufNewFile", "BufNew" }
|
||||
M.event = { "VeryLazy" }
|
||||
|
||||
M.opts = function()
|
||||
local icons = require("config.icons")
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
local M = { "NvChad/nvim-colorizer.lua" }
|
||||
|
||||
M.lazy = true
|
||||
|
||||
M.cmd = { "ColorizerToggle", "ColorizerAttachToBuffer", "ColorizerDetachFromBuffer", "ColorizerReloadAllBuffers" }
|
||||
|
||||
M.opts = { user_default_options = { names = false } }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
local M = { "numToStr/Comment.nvim" }
|
||||
|
||||
M.event = { "BufReadPost", "BufNewFile", "BufNew" }
|
||||
M.event = { "BufReadPost", "BufNewFile", "BufWritePre" }
|
||||
|
||||
M.opts = {
|
||||
mappings = {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
local M = { "lewis6991/gitsigns.nvim" }
|
||||
|
||||
M.event = { "BufReadPost", "BufNewFile", "BufNew" }
|
||||
M.event = { "BufReadPost", "BufNewFile", "BufWritePre" }
|
||||
|
||||
local icons = require("config.icons")
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ local M = { "lukas-reineke/indent-blankline.nvim" }
|
|||
|
||||
M.main = "ibl"
|
||||
|
||||
M.event = { "BufReadPost", "BufNewFile", "BufNew" }
|
||||
M.event = { "BufReadPost", "BufNewFile", "BufWritePre" }
|
||||
|
||||
M.dependencies = { "nvim-treesitter" }
|
||||
|
||||
|
@ -19,13 +19,17 @@ M.opts = {
|
|||
},
|
||||
exclude = {
|
||||
filetypes = {
|
||||
"help",
|
||||
"packer",
|
||||
"NvimTree",
|
||||
},
|
||||
buftypes = {
|
||||
"terminal",
|
||||
"nofile",
|
||||
"help",
|
||||
"alpha",
|
||||
"dashboard",
|
||||
"neo-tree",
|
||||
"Trouble",
|
||||
"trouble",
|
||||
"lazy",
|
||||
"mason",
|
||||
"notify",
|
||||
"toggleterm",
|
||||
"lazyterm",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
local M = { "nvim-lualine/lualine.nvim" }
|
||||
|
||||
-- M.event = { "VeryLazy" }
|
||||
|
||||
M.opts = function()
|
||||
local colors = require("tokyonight.colors").setup({ transform = true })
|
||||
local icons = require("config.icons")
|
||||
|
|
|
@ -2,7 +2,7 @@ local M = { "codota/tabnine-nvim" }
|
|||
|
||||
M.build = "./dl_binaries.sh"
|
||||
|
||||
M.event = { "BufReadPost", "BufNewFile", "BufNew" }
|
||||
M.event = { "BufReadPost", "BufNewFile", "BufWritePre" }
|
||||
|
||||
M.main = "tabnine"
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
local M = { "folke/todo-comments.nvim" }
|
||||
local icons = require("config.icons")
|
||||
|
||||
M.event = { "BufReadPost", "BufNewFile", "BufNew" }
|
||||
M.event = { "BufReadPost", "BufNewFile", "BufWritePre" }
|
||||
|
||||
M.opts = {
|
||||
signs = false,
|
||||
|
|
|
@ -2,7 +2,7 @@ local M = { "nvim-treesitter/nvim-treesitter" }
|
|||
|
||||
M.build = ":TSUpdate"
|
||||
|
||||
M.event = { "BufReadPost", "BufNewFile", "BufNew" }
|
||||
M.event = { "BufReadPost", "BufNewFile", "BufWritePre" }
|
||||
|
||||
-- M.cmd = {
|
||||
-- "TSBufDisable",
|
||||
|
|
Loading…
Add table
Reference in a new issue