49 lines
1.6 KiB
Lua
49 lines
1.6 KiB
Lua
-local vim = vim
|
|
local Plug = vim.fn['plug#']
|
|
|
|
vim.call('plug#begin')
|
|
|
|
-- Shorthand notation for GitHub; translates to https://github.com/junegunn/vim-easy-align
|
|
Plug('junegunn/vim-easy-align')
|
|
|
|
-- Any valid git URL is allowed
|
|
Plug('https://github.com/junegunn/seoul256.vim.git')
|
|
|
|
-- Using a tagged release; wildcard allowed (requires git 1.9.2 or above)
|
|
Plug('fatih/vim-go', { ['tag'] = '*' })
|
|
|
|
-- Using a non-default branch
|
|
Plug('neoclide/coc.nvim', { ['branch'] = 'release' })
|
|
|
|
-- Use 'dir' option to install plugin in a non-default directory
|
|
Plug('junegunn/fzf', { ['dir'] = '~/.fzf' })
|
|
|
|
-- Post-update hook: run a shell command after installing or updating the plugin
|
|
Plug('junegunn/fzf', { ['dir'] = '~/.fzf', ['do'] = './install --all' })
|
|
|
|
-- Post-update hook can be a lambda expression
|
|
Plug('junegunn/fzf', { ['do'] = function()
|
|
vim.fn['fzf#install']()
|
|
end })
|
|
|
|
-- If the vim plugin is in a subdirectory, use 'rtp' option to specify its path
|
|
Plug('nsf/gocode', { ['rtp'] = 'vim' })
|
|
|
|
-- On-demand loading: loaded when the specified command is executed
|
|
Plug('preservim/nerdtree', { ['on'] = 'NERDTreeToggle' })
|
|
|
|
-- On-demand loading: loaded when a file with a specific file type is opened
|
|
Plug('tpope/vim-fireplace', { ['for'] = 'clojure' })
|
|
|
|
-- Unmanaged plugin (manually installed and updated)
|
|
Plug('~/my-prototype-plugin')
|
|
|
|
vim.call('plug#end')- You can add your own plugins here or in other files in this directory!
|
|
-- I promise not to create any merge conflicts in this directory :)
|
|
--
|
|
-- See the kickstart.nvim README for more information
|
|
|
|
---@module 'lazy'
|
|
---@type LazySpec
|
|
return {}
|