my-nvim-setup/init.lua

39 lines
783 B
Lua
Raw Permalink Normal View History

2024-02-15 11:13:37 +00:00
-- Basic settings
2024-03-05 06:54:50 +00:00
require "basic"
2024-02-15 11:13:37 +00:00
-- Load plugins
2024-03-05 06:54:50 +00:00
local lazypath = vim.fn.stdpath "data" .. "/lazy/lazy.nvim"
2024-02-15 11:13:37 +00:00
if not vim.loop.fs_stat(lazypath) then
2024-03-05 06:54:50 +00:00
vim.fn.system {
"git",
"clone",
"--filter=blob:none",
"https://github.com/folke/lazy.nvim.git",
"--branch=stable", -- latest stable release
lazypath,
}
2024-02-15 11:13:37 +00:00
end
vim.opt.rtp:prepend(lazypath)
vim.g.mapleader = require("custom_keys").leader
vim.g.maplocalleader = "\\"
2024-03-05 06:54:50 +00:00
require("lazy").setup {
spec = {
{ import = "plugins" },
{ import = "languages" },
{ import = "my_plugins" },
},
ui = {
border = "rounded",
},
change_detection = {
enabled = true,
notify = false, -- get a notification when changes are found
},
}
2024-02-15 11:13:37 +00:00
-- Final settings
2024-03-05 06:54:50 +00:00
require "core"
2024-02-15 11:13:37 +00:00
pcall(require, "custom")