Mon, 06 Mar 2023 23:33:14 -0500
tweak lazy loading
--- a/.config/nvim/lua/plugins/editing.lua +++ b/.config/nvim/lua/plugins/editing.lua @@ -32,7 +32,10 @@ g.interestingWordsTermColors = { } return { - "editorconfig/editorconfig-vim", + { + "editorconfig/editorconfig-vim", + event = { "BufReadPost", "BufNewFile" }, + }, "tpope/vim-unimpaired", "tomtom/tcomment_vim",
--- a/.config/nvim/lua/plugins/etc.lua +++ b/.config/nvim/lua/plugins/etc.lua @@ -20,5 +20,5 @@ g.vimwiki_list = { } return { - "vimwiki/vimwiki", + { "vimwiki/vimwiki", event = "VeryLazy" }, }
--- a/.config/nvim/lua/plugins/filetype.lua +++ b/.config/nvim/lua/plugins/filetype.lua @@ -9,6 +9,7 @@ g.perl_compiler_force_warnings = 0 return { { "nvim-treesitter/nvim-treesitter", + event = { "BufReadPost", "BufNewFile" }, build = function() require("nvim-treesitter.install").update({ with_sync = true }) end, @@ -30,7 +31,7 @@ return { }) end, }, - "Shougo/vinarise.vim", + { "Shougo/vinarise.vim", cmd = "Vinarise" }, "asciidoc/vim-asciidoc", { "vim-perl/vim-perl", branch = "dev" }, "yko/mojo.vim",
--- a/.config/nvim/lua/plugins/lsp.lua +++ b/.config/nvim/lua/plugins/lsp.lua @@ -1,10 +1,14 @@ return { - "neovim/nvim-lspconfig", + -- mason is nonlazy so my executable tests works { "williamboman/mason.nvim", config = true }, - { "j-hui/fidget.nvim", config = true }, { - "williamboman/mason-lspconfig.nvim", + "neovim/nvim-lspconfig", + event = { "BufReadPre", "BufNewFile" }, + dependencies = { + "williamboman/mason-lspconfig.nvim", + { "j-hui/fidget.nvim", config = true }, + }, config = function(plugin, opts) require("mason-lspconfig").setup() require("mason-lspconfig").setup_handlers({
--- a/.config/nvim/lua/plugins/ui.lua +++ b/.config/nvim/lua/plugins/ui.lua @@ -6,7 +6,7 @@ g.viewdoc_open = "topleft new" g.viewdoc_winwidth_max = 100 return { - "powerman/vim-plugin-viewdoc", + { "powerman/vim-plugin-viewdoc", event = "VeryLazy" }, { "nvim-lualine/lualine.nvim", @@ -35,7 +35,7 @@ return { { "lukas-reineke/indent-blankline.nvim", - event = "BufReadPost", + event = { "BufReadPost", "BufNewFile" }, keys = { { "<leader>ig", "<cmd>IndentBlanklineToggle<cr>" }, },