forked from nvim-lua/kickstart.nvim
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
37 lines (29 loc) · 1.03 KB
/
init.lua
File metadata and controls
37 lines (29 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
-- Neovim Configuration
---------------------------------------------------------------
-- A clean, modular, and easy-to-maintain Neovim configuration
---------------------------------------------------------------
-- Bootstrap the configuration
local bootstrap = function()
-- Set leader key before anything else
vim.g.mapleader = ' '
vim.g.maplocalleader = ','
-- Detect if NerdFonts are available
vim.g.have_nerd_font = true
-- Bootstrap lazy.nvim (plugin manager)
local lazypath = vim.fn.stdpath('data') .. '/lazy/lazy.nvim'
if not (vim.uv or vim.loop).fs_stat(lazypath) then
local lazyrepo = 'https://github.com/folke/lazy.nvim.git'
vim.fn.system { 'git', 'clone', '--filter=blob:none', '--branch=stable', lazyrepo, lazypath }
end
vim.opt.rtp:prepend(lazypath)
end
-- Initialize the environment
bootstrap()
-- Load core settings (options, autocmds)
require('core')
-- Load keymaps
require('keymaps')
-- Load plugins
require('plugins')
-- Load language-specific settings and custom configs
require('config')