diff options
author | Squibid <me@zacharyscheiman.com> | 2023-04-30 18:41:13 -0400 |
---|---|---|
committer | Squibid <me@zacharyscheiman.com> | 2023-04-30 18:41:13 -0400 |
commit | 01a09f243ce07d367c539d69d4a7f4541ab1dcd7 (patch) | |
tree | ec2af23e59a38d4f9ac476e69abc07c8110b52a1 /init.lua | |
parent | 7c5d3eff786bef884022cc813448bb085ba4eccd (diff) | |
download | nvim-01a09f243ce07d367c539d69d4a7f4541ab1dcd7.tar.gz nvim-01a09f243ce07d367c539d69d4a7f4541ab1dcd7.tar.bz2 nvim-01a09f243ce07d367c539d69d4a7f4541ab1dcd7.zip |
new config old version is now on v1 branch
Diffstat (limited to '')
-rw-r--r-- | init.lua | 18 |
1 files changed, 12 insertions, 6 deletions
@@ -1,9 +1,15 @@ --- global shorthands +-- shorhands ------------------------------------------------------------------ o = vim.opt -g = vim.g a = vim.api -cmd = vim.cmd -g.mapleader = " " +g = vim.g +c = vim.cmd + +-- main lua files ------------------------------------------------------------- +require('bootstrap') +require('core.handler') --- load config -require('core.init') +-- 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 |