
* feat: init lazy.nvim * refactor: easy plugin init * feat: user defined plugins * refactor: clean up user config * refactor: clean up lsp plugins * fix: lsp signature * fix: null ls user config * feat: replace commands * feat: optimize lazy loading * fix: lsp_signature working * fix: documentation hover/sig help * fix: autopairs * feat: clean up luasnips * fix auto complete * moar laziness * feat: add markdown_inline to ensured_installed for TS * clean up * clean up auto-session
30 lines
736 B
Lua
30 lines
736 B
Lua
local cosmic_modules = {
|
|
'cosmic.core.disabled',
|
|
'cosmic.core.editor',
|
|
'cosmic.core.pluginsInit',
|
|
'cosmic.lsp',
|
|
'cosmic.core.commands',
|
|
'cosmic.core.mappings',
|
|
'cosmic.config.editor',
|
|
}
|
|
|
|
-- set up lazy.nvim to install plugins
|
|
local lazypath = vim.fn.stdpath('data') .. '/lazy/lazy.nvim'
|
|
if not vim.loop.fs_stat(lazypath) then
|
|
vim.fn.system({
|
|
'git',
|
|
'clone',
|
|
'--filter=blob:none',
|
|
'--single-branch',
|
|
'https://github.com/folke/lazy.nvim.git',
|
|
lazypath,
|
|
})
|
|
end
|
|
vim.opt.runtimepath:prepend(lazypath)
|
|
|
|
for _, mod in ipairs(cosmic_modules) do
|
|
local ok, err = pcall(require, mod)
|
|
if not ok and not mod:find('cosmic.config') then
|
|
error(('Error loading %s...\n\n%s'):format(mod, err))
|
|
end
|
|
end
|