|
@@ -33,48 +33,46 @@ return require("packer").startup(function(use)
|
|
|
use "wbthomason/packer.nvim"
|
|
|
|
|
|
-- 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", opt = true}
|
|
|
- use {"glepnir/lspsaga.nvim", opt = true}
|
|
|
+ use {"neovim/nvim-lspconfig", event = "BufRead", opt = true}
|
|
|
use {"kabouzeid/nvim-lspinstall", opt = true}
|
|
|
- use {"folke/trouble.nvim", opt = true}
|
|
|
|
|
|
-- Telescope
|
|
|
use {"nvim-lua/popup.nvim", opt = true}
|
|
|
use {"nvim-lua/plenary.nvim", opt = true}
|
|
|
use {"nvim-telescope/telescope.nvim", opt = true}
|
|
|
- use {"nvim-telescope/telescope-fzy-native.nvim", opt = true}
|
|
|
- use {"nvim-telescope/telescope-project.nvim", opt = true}
|
|
|
-
|
|
|
- -- Debugging
|
|
|
- use {"mfussenegger/nvim-dap", opt = true}
|
|
|
|
|
|
-- Autocomplete
|
|
|
- use {"hrsh7th/nvim-compe", opt = true}
|
|
|
- use {"hrsh7th/vim-vsnip", opt = true}
|
|
|
- use {"rafamadriz/friendly-snippets", opt = true}
|
|
|
+ use {"hrsh7th/nvim-compe", event = "InsertEnter", opt = true}
|
|
|
|
|
|
-- Treesitter
|
|
|
- use {"nvim-treesitter/nvim-treesitter", run = ":TSUpdate"}
|
|
|
- use {"windwp/nvim-ts-autotag", opt = true}
|
|
|
- use {'andymass/vim-matchup', opt = true}
|
|
|
+ use {
|
|
|
+ "nvim-treesitter/nvim-treesitter",
|
|
|
+ event = "BufRead"
|
|
|
+
|
|
|
+ -- run = ":TSUpdate"
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
-- Explorer
|
|
|
- use {"kyazdani42/nvim-tree.lua", opt = true}
|
|
|
- use {"ahmedkhalf/lsp-rooter.nvim", opt = true} -- with this nvim-tree will follow you
|
|
|
- -- TODO remove when open on dir is supported by nvimtree
|
|
|
- use "kevinhwang91/rnvimr"
|
|
|
+ -- use {"kyazdani42/nvim-tree.lua", opt = true}
|
|
|
+
|
|
|
+ use {
|
|
|
+ "kyazdani42/nvim-tree.lua",
|
|
|
+ opt = true,
|
|
|
+ cmd = "NvimTreeToggle",
|
|
|
+ config = function()
|
|
|
+ require("nvimTree").config()
|
|
|
+ end
|
|
|
+ }
|
|
|
|
|
|
-- use {'lukas-reineke/indent-blankline.nvim', opt=true, branch = 'lua'}
|
|
|
- use {"lewis6991/gitsigns.nvim", opt = true}
|
|
|
- use {'f-person/git-blame.nvim', opt = true}
|
|
|
+ use {"lewis6991/gitsigns.nvim", event = "BufRead", opt = true}
|
|
|
+
|
|
|
use {"folke/which-key.nvim", opt = true}
|
|
|
- use {"ChristianChiarulli/dashboard-nvim", opt = true}
|
|
|
- use {"windwp/nvim-autopairs", opt = true}
|
|
|
- use {"kevinhwang91/nvim-bqf", opt = true}
|
|
|
+ use {"windwp/nvim-autopairs", event = "InsertEnter", opt = true}
|
|
|
|
|
|
-- Comments
|
|
|
use {"terrortylor/nvim-comment", opt = true}
|
|
|
- use {'JoosepAlviste/nvim-ts-context-commentstring', opt = true}
|
|
|
|
|
|
-- Color
|
|
|
use {"christianchiarulli/nvcode-color-schemes.vim", opt = true}
|
|
@@ -86,44 +84,25 @@ return require("packer").startup(function(use)
|
|
|
use {"glepnir/galaxyline.nvim", opt = true}
|
|
|
use {"romgrk/barbar.nvim", opt = true}
|
|
|
|
|
|
- -- Zen Mode
|
|
|
- use {"Pocco81/TrueZen.nvim", opt = true}
|
|
|
-
|
|
|
-
|
|
|
- -- Sane gx for netrw_gx bug
|
|
|
- use {"felipec/vim-sanegx"}
|
|
|
-
|
|
|
+ use {"hrsh7th/vim-vsnip", opt = true}
|
|
|
+ require_plugin("vim-vsnip")
|
|
|
|
|
|
require_plugin("nvim-lspconfig")
|
|
|
- require_plugin("lspsaga.nvim")
|
|
|
require_plugin("nvim-lspinstall")
|
|
|
- require_plugin('trouble.nvim')
|
|
|
- require_plugin("friendly-snippets")
|
|
|
require_plugin("popup.nvim")
|
|
|
require_plugin("plenary.nvim")
|
|
|
require_plugin("telescope.nvim")
|
|
|
- require_plugin('telescope-project.nvim')
|
|
|
- require_plugin("nvim-dap")
|
|
|
require_plugin("nvim-compe")
|
|
|
- require_plugin("vim-vsnip")
|
|
|
require_plugin("nvim-treesitter")
|
|
|
- require_plugin("nvim-ts-autotag")
|
|
|
- require_plugin('vim-matchup')
|
|
|
require_plugin("nvim-tree.lua")
|
|
|
require_plugin("gitsigns.nvim")
|
|
|
- require_plugin("git-blame.nvim")
|
|
|
require_plugin("which-key.nvim")
|
|
|
- require_plugin("dashboard-nvim")
|
|
|
require_plugin("nvim-autopairs")
|
|
|
require_plugin("nvim-comment")
|
|
|
- require_plugin("nvim-bqf")
|
|
|
require_plugin("nvcode-color-schemes.vim")
|
|
|
require_plugin("nvim-web-devicons")
|
|
|
require_plugin("galaxyline.nvim")
|
|
|
require_plugin("barbar.nvim")
|
|
|
- require_plugin('lsp-rooter.nvim')
|
|
|
- require_plugin("TrueZen.nvim")
|
|
|
- require_plugin("nvim-ts-context-commentstring")
|
|
|
|
|
|
-- Extras
|
|
|
if O.extras then
|
|
@@ -162,6 +141,51 @@ return require("packer").startup(function(use)
|
|
|
-- Latex
|
|
|
use {"lervag/vimtex", opt = true}
|
|
|
require_plugin("vimtex")
|
|
|
+ -- matchup
|
|
|
+ use {'andymass/vim-matchup', opt = true}
|
|
|
+ require_plugin('vim-matchup')
|
|
|
+ -- comments in context
|
|
|
+ use {'JoosepAlviste/nvim-ts-context-commentstring', opt = true}
|
|
|
+ require_plugin("nvim-ts-context-commentstring")
|
|
|
+ -- Zen Mode
|
|
|
+ use {"Pocco81/TrueZen.nvim", opt = true}
|
|
|
+ require_plugin("TrueZen.nvim")
|
|
|
+ -- Git extras
|
|
|
+ use {'f-person/git-blame.nvim', opt = true}
|
|
|
+ require_plugin("git-blame.nvim")
|
|
|
+ -- TODO remove when open on dir is supported by nvimtree
|
|
|
+ -- use "kevinhwang91/rnvimr"
|
|
|
+ use {"nvim-telescope/telescope-fzy-native.nvim", opt = true}
|
|
|
+ use {"nvim-telescope/telescope-project.nvim", opt = true}
|
|
|
+ require_plugin('telescope-project.nvim')
|
|
|
+
|
|
|
+ -- Debugging
|
|
|
+ use {"mfussenegger/nvim-dap", opt = true}
|
|
|
+ require_plugin("nvim-dap")
|
|
|
+
|
|
|
+ use {"rafamadriz/friendly-snippets", opt = true}
|
|
|
+ require_plugin("friendly-snippets")
|
|
|
+
|
|
|
+ use {"kevinhwang91/nvim-bqf", opt = true}
|
|
|
+ require_plugin("nvim-bqf")
|
|
|
+
|
|
|
+ use {"ahmedkhalf/lsp-rooter.nvim", opt = true} -- with this nvim-tree will follow you
|
|
|
+ require_plugin('lsp-rooter.nvim')
|
|
|
+
|
|
|
+ use {"glepnir/lspsaga.nvim", opt = true}
|
|
|
+ require_plugin("lspsaga.nvim")
|
|
|
+
|
|
|
+ use {"ChristianChiarulli/dashboard-nvim", opt = true}
|
|
|
+ require_plugin("dashboard-nvim")
|
|
|
+
|
|
|
+ use {"folke/trouble.nvim", opt = true}
|
|
|
+ require_plugin('trouble.nvim')
|
|
|
+
|
|
|
+ -- Sane gx for netrw_gx bug
|
|
|
+ use {"felipec/vim-sanegx", opt = true}
|
|
|
+ -- Autotag
|
|
|
+ -- use {"windwp/nvim-ts-autotag", opt = true}
|
|
|
+ -- require_plugin("nvim-ts-autotag")
|
|
|
|
|
|
-- folke/todo-comments.nvim
|
|
|
-- gennaro-tedesco/nvim-jqx
|