|
1 |
| ---This file can be loaded by calling `lua require('plugins')` from your init.vim |
| 1 | +-- This file can be loaded by calling `lua require('plugins')` from your init.vim |
2 | 2 |
|
3 | 3 | -- Only required if you have packer configured as `opt`
|
4 |
| -vim.cmd [[packadd packer.nvim]] |
| 4 | +vim.cmd.packadd('packer.nvim') |
5 | 5 |
|
6 | 6 | return require('packer').startup(function(use)
|
7 | 7 | -- Packer can manage itself
|
8 | 8 | use 'wbthomason/packer.nvim'
|
9 | 9 |
|
10 |
| - |
11 | 10 | use {
|
12 |
| - 'nvim-telescope/telescope.nvim', tag = '0.1.1', |
13 |
| - -- or , branch = '0.1.x', |
14 |
| - requires = { {'nvim-lua/plenary.nvim'} } |
| 11 | + 'nvim-telescope/telescope.nvim', tag = '0.1.0', |
| 12 | + -- or , branch = '0.1.x', |
| 13 | + requires = { {'nvim-lua/plenary.nvim'} } |
15 | 14 | }
|
16 | 15 |
|
17 |
| -use ({ |
18 |
| - 'rose-pine/neovim', |
19 |
| - as = 'rose-pine', |
20 |
| - config = function() |
21 |
| - vim.cmd('colorscheme rose-pine') |
22 |
| - end |
23 |
| -}) |
24 |
| - |
25 |
| -use('nvim-treesitter/nvim-treesitter', {run: ':TSUpdate'}) |
26 |
| -end) |
| 16 | + use({ |
| 17 | + 'rose-pine/neovim', |
| 18 | + as = 'rose-pine', |
| 19 | + config = function() |
| 20 | + vim.cmd('colorscheme rose-pine') |
| 21 | + end |
| 22 | + }) |
27 | 23 |
|
| 24 | + use({ |
| 25 | + "folke/trouble.nvim", |
| 26 | + config = function() |
| 27 | + require("trouble").setup { |
| 28 | + icons = false, |
| 29 | + -- your configuration comes here |
| 30 | + -- or leave it empty to use the default settings |
| 31 | + -- refer to the configuration section below |
| 32 | + } |
| 33 | + end |
| 34 | + }) |
28 | 35 |
|
29 |
| -use("nvim-treesitter/playground") |
30 |
| -use("theprimeagen/harpoon") |
31 |
| -use("theprimeagen/refactoring.nvim") |
32 |
| -use("mbbill/undotree") |
33 |
| --- TabNine |
34 |
| -use('codota/tabnine-nvim') |
35 |
| -use("tpope/vim-fugitive") |
36 |
| -use("nvim-treesitter/nvim-treesitter-context"); |
| 36 | + use { |
| 37 | + 'nvim-treesitter/nvim-treesitter', |
| 38 | + run = function() |
| 39 | + local ts_update = require('nvim-treesitter.install').update({ with_sync = true }) |
| 40 | + ts_update() |
| 41 | + end,} |
| 42 | + use("nvim-treesitter/playground") |
| 43 | + use("theprimeagen/harpoon") |
| 44 | + use("ThePrimeagen/vim-be-good") |
| 45 | + use("theprimeagen/refactoring.nvim") |
| 46 | + use("mbbill/undotree") |
| 47 | + use("tpope/vim-fugitive") |
| 48 | + use("nvim-treesitter/nvim-treesitter-context"); |
37 | 49 |
|
38 |
| -use { |
39 |
| - 'VonHeikemen/lsp-zero.nvim', |
40 |
| - branch = 'v1.x', |
41 |
| - requires = { |
42 |
| - -- LSP Support |
43 |
| - {'neovim/nvim-lspconfig'}, |
44 |
| - {'williamboman/mason.nvim'}, |
45 |
| - {'williamboman/mason-lspconfig.nvim'}, |
| 50 | + use { |
| 51 | + 'VonHeikemen/lsp-zero.nvim', |
| 52 | + branch = 'v1.x', |
| 53 | + requires = { |
| 54 | + -- LSP Support |
| 55 | + {'neovim/nvim-lspconfig'}, |
| 56 | + {'williamboman/mason.nvim'}, |
| 57 | + {'williamboman/mason-lspconfig.nvim'}, |
46 | 58 |
|
47 |
| - -- Autocompletion |
48 |
| - {'hrsh7th/nvim-cmp'}, |
49 |
| - {'hrsh7th/cmp-buffer'}, |
50 |
| - {'hrsh7th/cmp-path'}, |
51 |
| - {'saadparwaiz1/cmp_luasnip'}, |
52 |
| - {'hrsh7th/cmp-nvim-lsp'}, |
53 |
| - {'codota/tabnine-nvim'}, |
| 59 | + -- Autocompletion |
| 60 | + {'hrsh7th/nvim-cmp'}, |
| 61 | + {'hrsh7th/cmp-buffer'}, |
| 62 | + {'hrsh7th/cmp-path'}, |
| 63 | + {'saadparwaiz1/cmp_luasnip'}, |
| 64 | + {'hrsh7th/cmp-nvim-lsp'}, |
| 65 | + {'hrsh7th/cmp-nvim-lua'}, |
54 | 66 |
|
55 |
| - -- Snippets |
56 |
| - {'L3MON4D3/LuaSnip'}, |
57 |
| - {'rafamadriz/friendly-snippets'}, |
58 |
| - } |
59 |
| -} |
| 67 | + -- Snippets |
| 68 | + {'L3MON4D3/LuaSnip'}, |
| 69 | + {'rafamadriz/friendly-snippets'}, |
| 70 | + } |
| 71 | + } |
60 | 72 |
|
61 |
| -use("folke/zen-mode.nvim") |
62 |
| ---use("github/copilot.vim") |
63 |
| -use("eandrju/cellular-automaton.nvim") |
64 |
| -use("laytan/cloak.nvim") |
| 73 | + use("folke/zen-mode.nvim") |
| 74 | + -- use("github/copilot.vim") |
| 75 | + -- TabNine |
| 76 | + use('codota/tabnine-nvim') |
| 77 | + use("eandrju/cellular-automaton.nvim") |
| 78 | + use("laytan/cloak.nvim") |
65 | 79 |
|
66 | 80 | end)
|
0 commit comments