mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-21 02:55:09 +02:00
more lazyload
This commit is contained in:
parent
6a09208590
commit
a8b4a96ddd
1 changed files with 11 additions and 9 deletions
|
@ -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)
|
||||
use {"neovim/nvim-lspconfig"}
|
||||
use {"glepnir/lspsaga.nvim"}
|
||||
use {"kabouzeid/nvim-lspinstall",
|
||||
cmd = "LspInstall",
|
||||
}
|
||||
use {"glepnir/lspsaga.nvim", cmd = "Lspsaga"}
|
||||
use {"kabouzeid/nvim-lspinstall", cmd = "LspInstall"}
|
||||
-- Telescope
|
||||
use {"nvim-lua/popup.nvim"}
|
||||
use {"nvim-lua/plenary.nvim"}
|
||||
|
@ -58,6 +56,7 @@ return require("packer").startup(function(use)
|
|||
-- Autocomplete
|
||||
use {
|
||||
"hrsh7th/nvim-compe",
|
||||
event = "InsertEnter",
|
||||
config = function()
|
||||
require("lv-compe").config()
|
||||
end
|
||||
|
@ -91,6 +90,7 @@ return require("packer").startup(function(use)
|
|||
|
||||
-- Autopairs
|
||||
use {
|
||||
-- event = "InsertEnter",
|
||||
"windwp/nvim-autopairs",
|
||||
config = function()
|
||||
require 'lv-autopairs'
|
||||
|
@ -224,9 +224,8 @@ return require("packer").startup(function(use)
|
|||
vim.g.indentLine_enabled = 1
|
||||
vim.g.indent_blankline_char = "▏"
|
||||
|
||||
vim.g.indent_blankline_filetype_exclude = {
|
||||
"help", "terminal", "dashboard"
|
||||
}
|
||||
vim.g.indent_blankline_filetype_exclude =
|
||||
{"help", "terminal", "dashboard"}
|
||||
vim.g.indent_blankline_buftype_exclude = {"terminal"}
|
||||
|
||||
vim.g.indent_blankline_show_trailing_blankline_indent = false
|
||||
|
@ -421,7 +420,10 @@ return require("packer").startup(function(use)
|
|||
|
||||
-- Rust tools
|
||||
-- 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
|
||||
use {"elixir-editors/vim-elixir", ft = {"elixir", "eelixir", "euphoria3"}}
|
||||
|
@ -429,7 +431,7 @@ return require("packer").startup(function(use)
|
|||
-- Tabnine
|
||||
use {
|
||||
"tzachar/compe-tabnine",
|
||||
run="./install.sh",
|
||||
run = "./install.sh",
|
||||
requires = "hrsh7th/nvim-compe",
|
||||
disable = not O.plugin.tabnine.active
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue