packer.nvim icon indicating copy to clipboard operation
packer.nvim copied to clipboard

Better syntax for defining plugins

Open siduck opened this issue 3 years ago • 1 comments

Default :

 use  { 
        'andymass/vim-matchup', 
         event = 'CursorMoved'
  }

Can be made to :

['andymass/vim-matchup'] = { 
       event = 'CursorMoved
}

siduck avatar May 15 '22 02:05 siduck

image

looks much cleaner I guess

siduck avatar May 15 '22 02:05 siduck

Note: as per the packer docs, you can pass a table without use:

require("packer").startup({
  { "wbthomason/packer.nvim" },
  { "andymass/vim-matchup", event = "VimEnter" },
})

adrian5 avatar Oct 03 '22 21:10 adrian5

Note: as per the packer docs, you can pass a table without use:

require("packer").startup({
  { "wbthomason/packer.nvim" },
  { "andymass/vim-matchup", event = "VimEnter" },
})

thx!

siduck avatar Oct 04 '22 00:10 siduck