more lazyload

This commit is contained in:
Chris 2021-07-04 12:17:45 -04:00
parent 6a09208590
commit a8b4a96ddd

View file

@ -33,10 +33,8 @@ return require("packer").startup(function(use)
-- TODO refactor all of this (for now it works, but yes I know it could be wrapped in a simpler function) -- TODO refactor all of this (for now it works, but yes I know it could be wrapped in a simpler function)
use {"neovim/nvim-lspconfig"} use {"neovim/nvim-lspconfig"}
use {"glepnir/lspsaga.nvim"} use {"glepnir/lspsaga.nvim", cmd = "Lspsaga"}
use {"kabouzeid/nvim-lspinstall", use {"kabouzeid/nvim-lspinstall", cmd = "LspInstall"}
cmd = "LspInstall",
}
-- Telescope -- Telescope
use {"nvim-lua/popup.nvim"} use {"nvim-lua/popup.nvim"}
use {"nvim-lua/plenary.nvim"} use {"nvim-lua/plenary.nvim"}
@ -58,6 +56,7 @@ return require("packer").startup(function(use)
-- Autocomplete -- Autocomplete
use { use {
"hrsh7th/nvim-compe", "hrsh7th/nvim-compe",
event = "InsertEnter",
config = function() config = function()
require("lv-compe").config() require("lv-compe").config()
end end
@ -91,6 +90,7 @@ return require("packer").startup(function(use)
-- Autopairs -- Autopairs
use { use {
-- event = "InsertEnter",
"windwp/nvim-autopairs", "windwp/nvim-autopairs",
config = function() config = function()
require 'lv-autopairs' require 'lv-autopairs'
@ -224,9 +224,8 @@ return require("packer").startup(function(use)
vim.g.indentLine_enabled = 1 vim.g.indentLine_enabled = 1
vim.g.indent_blankline_char = "" vim.g.indent_blankline_char = ""
vim.g.indent_blankline_filetype_exclude = { vim.g.indent_blankline_filetype_exclude =
"help", "terminal", "dashboard" {"help", "terminal", "dashboard"}
}
vim.g.indent_blankline_buftype_exclude = {"terminal"} vim.g.indent_blankline_buftype_exclude = {"terminal"}
vim.g.indent_blankline_show_trailing_blankline_indent = false vim.g.indent_blankline_show_trailing_blankline_indent = false
@ -421,7 +420,10 @@ return require("packer").startup(function(use)
-- Rust tools -- Rust tools
-- TODO: use lazy loading maybe? -- TODO: use lazy loading maybe?
use {"simrat39/rust-tools.nvim", disable = not O.lang.rust.rust_tools.active} use {
"simrat39/rust-tools.nvim",
disable = not O.lang.rust.rust_tools.active
}
-- Elixir -- Elixir
use {"elixir-editors/vim-elixir", ft = {"elixir", "eelixir", "euphoria3"}} use {"elixir-editors/vim-elixir", ft = {"elixir", "eelixir", "euphoria3"}}