-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
79 lines (69 loc) · 2.41 KB
/
init.lua
File metadata and controls
79 lines (69 loc) · 2.41 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
-- Neovim Configuration
-- Main entry point for the Neovim configuration
-- ============================================================================
-- LEADER KEY SETUP
-- ============================================================================
vim.g.mapleader = " "
vim.g.maplocalleader = " "
-- ============================================================================
-- LAZY.NVIM SETUP
-- ============================================================================
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
-- Install lazy.nvim if not present
if not vim.uv.fs_stat(lazypath) then
local repo = "https://github.com/folke/lazy.nvim.git"
vim.fn.system({ "git", "clone", "--filter=blob:none", repo, "--branch=stable", lazypath })
end
vim.opt.rtp:prepend(lazypath)
-- ============================================================================
-- PLUGIN MANAGER CONFIGURATION
-- ============================================================================
local lazy = require("lazy")
lazy.setup({
spec = {
{ import = "plugins" },
},
defaults = { lazy = true },
install = { colorscheme = { "oxocarbon" } },
performance = {
rtp = {
disabled_plugins = {
-- Disable built-in plugins for better performance
"2html_plugin",
"tohtml",
"getscript",
"getscriptPlugin",
"gzip",
"logipat",
"netrw",
"netrwPlugin",
"netrwSettings",
"netrwFileHandlers",
"matchit",
"tar",
"tarPlugin",
"rrhelper",
"spellfile_plugin",
"vimball",
"vimballPlugin",
"zip",
"zipPlugin",
"tutor",
"rplugin",
"syntax",
"synmenu",
"optwin",
"compiler",
"bugreport",
"ftplugin",
},
},
},
})
-- ============================================================================
-- CONFIGURATION LOADING
-- ============================================================================
-- Load core configuration
require("options") -- Basic Neovim options
require("keymaps") -- Key mappings
require("autocommands") -- Autocommands