2024-01-19 11:29:06 +01:00
|
|
|
--[[
|
|
|
|
speedie's neovim configuration
|
|
|
|
-- https://git.speedie.site/speedie/speedie-nvim --
|
|
|
|
]]--
|
|
|
|
|
2024-01-19 23:06:16 +01:00
|
|
|
vim.api.nvim_set_keymap('', LeaderKey, '<Nop>', { noremap = true, silent = true })
|
|
|
|
vim.g.mapleader = LeaderKey
|
|
|
|
vim.g.maplocalleader = LeaderKey
|
|
|
|
|
2024-01-30 16:16:38 +01:00
|
|
|
local lazypath = vim.fn.stdpath('data') .. '/lazy/lazy.nvim'
|
2024-01-19 11:29:06 +01:00
|
|
|
if not vim.loop.fs_stat(lazypath) then
|
|
|
|
vim.fn.system({
|
2024-01-30 16:16:38 +01:00
|
|
|
'git',
|
|
|
|
'clone',
|
|
|
|
'--filter=blob:none',
|
|
|
|
'https://github.com/folke/lazy.nvim.git',
|
|
|
|
'--branch=stable', -- latest stable release
|
2024-01-19 11:29:06 +01:00
|
|
|
lazypath,
|
|
|
|
})
|
|
|
|
end
|
|
|
|
vim.opt.rtp:prepend(lazypath)
|
2024-01-19 13:50:47 +01:00
|
|
|
|
2024-01-20 15:11:21 +01:00
|
|
|
local function combineTable(table1,table2)
|
|
|
|
for i=1,#table2 do
|
|
|
|
table1[#table1+1] = table2[i]
|
|
|
|
end
|
|
|
|
return table1
|
|
|
|
end
|
|
|
|
|
2024-01-30 16:16:38 +01:00
|
|
|
local lazyOptions = {
|
|
|
|
lockfile = lazypath .. '/lazy-lock.json'
|
|
|
|
}
|
|
|
|
|
|
|
|
require('lazy').setup(combineTable(combineTable(Plugins, Themes), lazyOptions))
|
|
|
|
require('setup')
|