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
|
-- Core plugin list: Neovim 0.12+ built-in package manager.
-- GitHub shorthand (owner/repo) is not supported by vim.pack.
local github = function(repo)
return 'https://github.com/' .. repo .. '.git'
end
-- Josher projects: local working checkout takes precedence over Git.
-- Change the root on each machine or override this helper locally.
local projects = vim.fn.expand('~/Projects')
local function josher(repo)
local path = projects .. '/' .. repo
if vim.fn.isdirectory(path) == 1 then
-- Place local checkout on runtimepath instead of downloading it.
vim.opt.rtp:prepend(path)
return nil
end
return 'git@git.josher.dev:' .. repo .. '.git'
end
local plugins = {
-- Searching
github('nvim-lua/plenary.nvim'),
github('nvim-telescope/telescope.nvim'),
-- Syntax / structural editing
github('nvim-treesitter/nvim-treesitter'),
github('nvim-treesitter/nvim-treesitter-textobjects'),
-- Editing and navigation
github('lewis6991/gitsigns.nvim'),
github('kylechui/nvim-surround'),
github('smoka7/hop.nvim'),
-- UI
github('nvim-lualine/lualine.nvim'),
github('nvim-tree/nvim-web-devicons'),
github('nvim-tree/nvim-tree.lua'),
-- LSP server presets only; native vim.lsp.enable/config is used elsewhere.
github('neovim/nvim-lspconfig'),
-- Existing personal plugins; delete entries you no longer want.
josher('bulletjava.vim'),
josher('fieldmarshal.vim'),
josher('nvim-color-picker'),
josher('nvim-warp'),
josher('meltdown'),
josher('extregs.nvim'),
josher('hobs.nvim'),
-- josher('rneovim-userregs'), -- Optional experimental branch/plugin.
}
-- Local projects return nil; remove holes before calling vim.pack.
local install = {}
for _, plugin in pairs(plugins) do
if plugin then install[#install + 1] = plugin end
end
vim.pack.add(install)
|