diff options
author | Squibid <me@zacharyscheiman.com> | 2023-08-11 20:43:58 -0400 |
---|---|---|
committer | Squibid <me@zacharyscheiman.com> | 2023-08-11 20:43:58 -0400 |
commit | 590f0309995a569954fc94b1d5df6b6391ead9fa (patch) | |
tree | cfca10f62e189018c0bb7944d446423e6397f375 /init.lua | |
parent | b8d70ed288b3b542b7bb24609384aa540339b2da (diff) | |
download | nvim-590f0309995a569954fc94b1d5df6b6391ead9fa.tar.gz nvim-590f0309995a569954fc94b1d5df6b6391ead9fa.tar.bz2 nvim-590f0309995a569954fc94b1d5df6b6391ead9fa.zip |
kitchen sink cause I'm too lazy to sort through this junk
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -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 ---------------------------------------------------- |