summaryrefslogtreecommitdiffstats
path: root/init.lua
blob: c24c4a050474d8dba74dfe31fd7f820c1e85fa55 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
-- shorhands ------------------------------------------------------------------
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