summaryrefslogtreecommitdiffstats
path: root/init.lua
blob: d0c3a7eed5ca21d881b8888c6a033b1581554944 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
-- shorthands -----------------------------------------------------------------
o = vim.opt
a = vim.api
g = vim.g
c = vim.cmd

-- main lua files -------------------------------------------------------------
require('bootstrap')
require('core.handler')

-- call all snippets in the lua/snippets directory ----------------------------
require('snippet.shorthands')
for _, file in ipairs(vim.fn.readdir(vim.fn.stdpath('config')..'/lua/snippet',
  [[v:val =~ '\.lua$']])) do
  require('snippet.'..file:gsub('%.lua$', ''))
end

-- call the config manager ----------------------------------------------------
require('mngr')