37 lines
915 B
Lua
37 lines
915 B
Lua
-- Leader keys early
|
|
vim.g.mapleader = ' '
|
|
vim.g.maplocalleader = ' '
|
|
|
|
-- Load basic settings, keymaps, autocmds (kept minimal for now)
|
|
require('settings')
|
|
require('completion')
|
|
require('netrw-config')
|
|
require('keymaps')
|
|
require('autocmds')
|
|
require('abbreviations')
|
|
require('keymaps_reference')
|
|
|
|
-- Bootstrap lazy.nvim
|
|
local lazypath = vim.fn.stdpath('data') .. '/lazy/lazy.nvim'
|
|
if not vim.uv.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.rtp:prepend(lazypath)
|
|
|
|
-- Setup plugin system (plugins will be added incrementally)
|
|
require('lazy').setup({
|
|
spec = {
|
|
{ import = 'plugins' },
|
|
},
|
|
rocks = {
|
|
enabled = false,
|
|
},
|
|
})
|
|
|
|
-- Load optional native packages after lazy.nvim has finalized runtimepath.
|
|
if vim.fn.has('nvim-0.12') == 1 then
|
|
vim.cmd.packadd('nvim.undotree')
|
|
end
|