dotfiles/nvim/init.lua

35 lines
762 B
Lua
Raw Normal View History

2023-07-10 13:46:48 +02:00
-- Setup global config
require("global")
2023-07-29 21:15:17 +02:00
-- Setup Neovide config
-- Only run this if inside Neovide
if vim.g.neovide then
require("neovide")
2023-07-10 13:46:48 +02:00
end
2023-07-29 21:15:17 +02:00
-- Bootstrap package manager
do
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",
"https://github.com/folke/lazy.nvim.git",
"--branch=stable", -- latest stable release
lazypath,
})
end
vim.opt.rtp:prepend(lazypath)
end
2023-07-10 13:46:48 +02:00
2023-07-29 21:15:17 +02:00
-- Load lazy
local lazy_ok, lazy = pcall(require, "lazy")
if lazy_ok then
lazy.setup(require("plugins"))
vim.keymap.set('n', '<leader>pm', lazy.home, { desc = "Package manager: open" })
else
print("(init) Couldn't load Lazy")
end
2023-07-10 13:46:48 +02:00