-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinit.lua
36 lines (32 loc) · 996 Bytes
/
init.lua
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
-- Bootstrap mini.deps
local path_package = vim.fn.stdpath 'data' .. '/site/'
local mini_path = path_package .. 'pack/deps/start/mini.nvim'
if not vim.loop.fs_stat(mini_path) then
vim.cmd 'echo "Installing `mini.nvim`" | redraw'
local clone_cmd = {
'git',
'clone',
'--filter=blob:none',
'https://github.com/echasnovski/mini.nvim',
mini_path,
}
vim.fn.system(clone_cmd)
vim.cmd 'packadd mini.nvim | helptags ALL'
vim.cmd 'echo "Installed `mini.nvim`" | redraw'
end
require('mini.deps').setup { path = { package = path_package } }
deps = MiniDeps
-- Install lz.n (lazy loading api)
deps.add { source = 'nvim-neorocks/lz.n' }
-- These must be here for it to package with Nix.
require 'options'
require 'keymaps'
require 'colorscheme'
-- Enable mini plugins
require('mini.pairs').setup()
require('mini.align').setup()
require('mini.basics').setup()
require('mini.jump').setup()
require('mini.cursorword').setup()
-- Load all plugins
require('lz.n').load 'plugins'