summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/plugins.lua
blob: 3164516dca6b53fc7de5da05ba06056067b4b0a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
local use = require('packer').use
require('packer').startup(function()
    use 'wbthomason/packer.nvim'
    use 'adast9/onedark.nvim'
    use 'nathom/filetype.nvim'
    use {
        'lewis6991/impatient.nvim',
        config = function()
            require("impatient")
        end
    }

    use 'tpope/vim-surround'
    use {
        'b3nj5m1n/kommentary',
        keys = {
            {"n", "gcc"},
            {"n", "gc"},
            {"v", "gc"},
        },
        config = function()
            require "setup.kommentary"
        end
    }

    use {
        'williamboman/nvim-lsp-installer',
        -- after = 'nvim-lspconfig',
        config = function()
            require "setup.nvim-lsp-installer"
        end
    }

    use 'neovim/nvim-lspconfig'
    -- use {
    --     'neovim/nvim-lspconfig',
    --     after = { 'nvim-cmp' },
    --     event = { 'BufRead', 'BufNewFile', 'InsertEnter' },
    -- }

    use {
        'hrsh7th/nvim-cmp',
        event = 'InsertEnter',
        config = function() 
            require "setup.nvim-cmp"
        end,
        wants = 'LuaSnip',
        requires = {
            {
                'hrsh7th/cmp-nvim-lsp'
            },
            {
                "L3MON4D3/LuaSnip",
                wants = "friendly-snippets",
                event = "InsertCharPre",
                config = function()
                    require("luasnip/loaders/from_vscode").lazy_load()
                end
            },
            {
                "rafamadriz/friendly-snippets",
                event = "InsertCharPre"
            },
            {
                "saadparwaiz1/cmp_luasnip",
                event = "InsertCharPre"
            }
        }
    }

    use {
        "ray-x/lsp_signature.nvim",
        event = 'InsertEnter',
        -- event = { 'BufRead' , 'BufNewFile' },
        config = function()
            require "setup.lsp_signature"
        end
    }

    use {
        "windwp/nvim-autopairs",
        after = { 'nvim-cmp'},
        config = function()
            require('nvim-autopairs').setup{}
        end
    }

    use {
        "lukas-reineke/indent-blankline.nvim",
        event = { 'BufRead' , 'BufNewFile' },
        config = function()
            require "setup.indent-blankline"
        end
    }

    use {
        'nvim-telescope/telescope.nvim',
        requires = {
            'nvim-lua/popup.nvim',
            'nvim-lua/plenary.nvim',
            'nvim-telescope/telescope-fzy-native.nvim',
            'BurntSushi/ripgrep'
        }
    }

    use {
        'lewis6991/gitsigns.nvim',
        requires = {
            'nvim-lua/plenary.nvim'
        },
        event = { 'BufRead' , 'BufNewFile' },
        config = function()
            require('gitsigns').setup()
        end
    }

    use {
        'nvim-treesitter/nvim-treesitter',
        run = ':TSUpdate',
        config = function()
            require "setup.nvim-treesitter"
        end
    }

    use {
        'nvim-lualine/lualine.nvim',
        requires = {'kyazdani42/nvim-web-devicons', opt = true},
        config = function()
            require "setup.lualine"
        end
    }
end)