yes there's a bit of java in my nvim config why do you ask?

This commit is contained in:
2024-08-09 02:45:31 -04:00
parent ad76983d96
commit c489d39369
104 changed files with 2058 additions and 2796 deletions

View File

@ -1,25 +1,39 @@
-- shorthands -----------------------------------------------------------------
o = vim.opt
a = vim.api
g = vim.g
c = vim.cmd
-- performance ----------------------------------------------------------------
-- enable performance stuff
vim.loader.enable()
-- main lua files -------------------------------------------------------------
misc = require('core.misc')
misc.include('bootstrap')
misc.include('conf')
-- core lua files -------------------------------------------------------------
misc.include('core.conf')
misc.include('core.context')
-- call all snippets in the lua/snippets directory ----------------------------
if pcall(require, "luasnip") then
misc.include('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
-- bootstrap plugin manager
local path = vim.fn.stdpath("data").."/site/pack/deps/opt/dep"
if vim.fn.empty(vim.fn.glob(path)) > 0 then
vim.fn.system({ "git", "clone", "--depth=1", "https://git.squi.bid/dep", path })
end
vim.cmd("packadd dep")
-- load miscellaneous utilities
local misc = require('core.misc')
-- load user config
misc.include('conf.opts') -- setup options
misc.include('conf.binds') -- setup keybinds
misc.include('conf.autos') -- setup autos
misc.include('conf.context') -- setup context menu
-- load plugins
require('dep') {
{ 'squibid/dep',
url = 'https://git.squi.bid/dep'
},
load = function()
-- aquire all plugin specs
local plugs = {}
for _, file in ipairs(vim.api.nvim_get_runtime_file("lua/conf/plugins/*.lua", true)) do
local ret = misc.include('conf.plugins.'..file:gsub('^.*/', ''):gsub('%.lua$', ''))
if type(ret) ~= "boolean" then
plugs[#plugs + 1] = ret
end
end
return plugs
end
}