From 590f0309995a569954fc94b1d5df6b6391ead9fa Mon Sep 17 00:00:00 2001 From: Squibid Date: Fri, 11 Aug 2023 20:43:58 -0400 Subject: kitchen sink cause I'm too lazy to sort through this junk --- init.lua | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'init.lua') diff --git a/init.lua b/init.lua index d0c3a7e..5e5ec85 100644 --- a/init.lua +++ b/init.lua @@ -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 ---------------------------------------------------- -- cgit v1.2.1