diff options
| author | christianchiarulli <[email protected]> | 2021-06-27 22:11:33 -0400 | 
|---|---|---|
| committer | christianchiarulli <[email protected]> | 2021-06-27 22:11:33 -0400 | 
| commit | 3009c6e5f667a450f39a792e17182c717bb2d751 (patch) | |
| tree | eb1f8bbf95ff291f7a4abce9412b50c2564b603c /lua/plugins.lua | |
| parent | 1dbb05ed5de0927ede5d0fb0733498674aef8409 (diff) | |
use start now, for more speed
Diffstat (limited to 'lua/plugins.lua')
| -rw-r--r-- | lua/plugins.lua | 168 | 
1 files changed, 124 insertions, 44 deletions
| diff --git a/lua/plugins.lua b/lua/plugins.lua index 49cb8697..5973bcb5 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -34,16 +34,55 @@ 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", event = "BufRead", opt = true} -    use {"glepnir/lspsaga.nvim", event = "BufRead", opt = true} -    use {"kabouzeid/nvim-lspinstall", opt = true} +    use { +        "neovim/nvim-lspconfig", + +        -- event = "BufRead",  + +        -- opt = true +    } +    use { +        "glepnir/lspsaga.nvim", + +        -- event = "BufRead",  + +        -- opt = true +    } +    use {"kabouzeid/nvim-lspinstall",  + +    -- opt = true + +}      -- Telescope -    use {"nvim-lua/popup.nvim", opt = true} -    use {"nvim-lua/plenary.nvim", opt = true} -    use {"nvim-telescope/telescope.nvim", cmd = "Telescope", opt = true} +    use {"nvim-lua/popup.nvim",  + +    -- opt = true + +} +    use {"nvim-lua/plenary.nvim",  + +    -- opt = true + +} +    use { +        "nvim-telescope/telescope.nvim", + +        -- cmd = "Telescope",  + +        -- opt = true +    }      -- Autocomplete -    use {"hrsh7th/nvim-compe", event = "InsertEnter", opt = true} +    use { +        "hrsh7th/nvim-compe", +        config = function() +            -- require_plugin("nvim-compe") +            require("lv-compe").config() +        end, +        -- event = "InsertEnter", + +        -- opt = true +    }      -- Treesitter      use { @@ -57,62 +96,103 @@ return require("packer").startup(function(use)      -- Explorer      -- use {"kyazdani42/nvim-tree.lua", opt = true} -    use {"kyazdani42/nvim-tree.lua", opt = true, cmd = "NvimTreeToggle"} +    use { +        "kyazdani42/nvim-tree.lua", +        -- cmd = "NvimTreeToggle", +        config = function() +            -- require_plugin("lv-nvimtree") +            require("lv-nvimtree").config() +        end, + +        -- opt = true +    }      -- use {'lukas-reineke/indent-blankline.nvim', opt=true, branch = 'lua'} -    use {"lewis6991/gitsigns.nvim", event = "BufRead", opt = true} +    use {"lewis6991/gitsigns.nvim", + +        -- event = "BufRead", + -    use {"folke/which-key.nvim", opt = true} -    use {"windwp/nvim-autopairs", event = "InsertEnter", opt = true} +        -- opt = true + +    } + +    use {"folke/which-key.nvim",  + +        -- opt = true + +    } +    use {"windwp/nvim-autopairs",  +        config = function() +            -- require_plugin("lv-nvimtree") +            require("lv-autopairs").config() +        end, + +        -- event = "InsertEnter",  + +        -- opt = true + +    }      -- Comments      use {          "terrortylor/nvim-comment",          cmd = "CommentToggle", -        config = require_plugin("nvim-comment"), -        opt = true +        config = function() +            require('nvim_comment').setup() +        end, +        -- opt = true      }      -- Color -    use { -        "christianchiarulli/nvcode-color-schemes.vim", -        config = require_plugin("nvcode-color-schemes.vim"), -        opt = true -    } +    use {"christianchiarulli/nvcode-color-schemes.vim", opt = true}      -- Icons -    use { -        "kyazdani42/nvim-web-devicons", -        config = require_plugin("nvim-web-devicons"), -        opt = true +    use {"kyazdani42/nvim-web-devicons",  +        -- opt = true +      }      -- Status Line and Bufferline -    use { -        "glepnir/galaxyline.nvim", -        config = require_plugin("galaxyline.nvim"), -        opt = true +    use {"glepnir/galaxyline.nvim",  + +        -- opt = true      } -    use { -        "romgrk/barbar.nvim", -        config = require_plugin("barbar.nvim"), -        opt = true + +    use {"romgrk/barbar.nvim", + +        config = function() +            -- require_plugin("barbar.nvim") +            vim.api.nvim_set_keymap('n', '<TAB>', ':BufferNext<CR>', { noremap = true, silent = true }) +            vim.api.nvim_set_keymap('n', '<S-TAB>', ':BufferPrevious<CR>', { noremap = true, silent = true }) +            vim.api.nvim_set_keymap('n', '<S-x>', ':BufferClose<CR>', { noremap = true, silent = true }) +        end, + +        -- opt = true + +    } + +    use {"hrsh7th/vim-vsnip",  + +        -- opt = true +      } -    use {"hrsh7th/vim-vsnip", config = require_plugin("vim-vsnip"), opt = true} - -    require_plugin("nvim-lspconfig") -    require_plugin("lspsaga.nvim") -    require_plugin("nvim-lspinstall") -    require_plugin("popup.nvim") -    require_plugin("plenary.nvim") -    require_plugin("telescope.nvim") -    require_plugin("nvim-compe") -    require_plugin("nvim-treesitter") -    require_plugin("nvim-tree.lua") -    require_plugin("gitsigns.nvim") -    require_plugin("which-key.nvim") -    require_plugin("nvim-autopairs") +    -- require_plugin("nvim-lspconfig") +    -- require_plugin("lspsaga.nvim") +    -- require_plugin("nvim-lspinstall") +    -- require_plugin("popup.nvim") +    -- require_plugin("plenary.nvim") +    -- require_plugin("telescope.nvim") +    -- require_plugin("nvim-treesitter") +    -- require_plugin("nvim-comment") +    -- require_plugin("nvim-tree.lua") +    -- require_plugin("gitsigns.nvim") +    -- require_plugin("which-key.nvim") +    -- require_plugin("nvim-autopairs") +    -- require_plugin("nvim-web-devicons") +    -- require_plugin("galaxyline.nvim") +    -- require_plugin("vim-vsnip")      -- Extras      if O.extras then | 
