kitchen sink cause I'm too lazy to sort through this junk

This commit is contained in:
2023-08-11 20:43:58 -04:00
parent b8d70ed288
commit 590f030999
23 changed files with 463 additions and 206 deletions

View File

@ -4,15 +4,20 @@ a = vim.api
g = vim.g
c = vim.cmd
-- performance ----------------------------------------------------------------
vim.loader.enable()
-- 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$', ''))
if pcall(require, "luasnip") then
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
end
-- call the config manager ----------------------------------------------------