-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
61 lines (50 loc) · 2.15 KB
/
init.lua
File metadata and controls
61 lines (50 loc) · 2.15 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
vim.g.loaded = 1
vim.g.loaded_netrwPlugin = 1
-- Enable filetype detection, plugins, and indentation
vim.cmd("filetype plugin indent on")
-- Set leader key to space (must be before lazy.nvim)
vim.g.mapleader = " "
vim.g.maplocalleader = " "
-- Reduce LSP logging overhead (was causing 800MB log file)
vim.lsp.log.set_level("WARN") -- Fixed deprecated API
-- Native smooth scrolling (Neovim 0.10+, replaces neoscroll.nvim)
vim.opt.smoothscroll = true
-- Native persistent undo (replaces nvim-fundo)
vim.opt.undofile = true
vim.opt.undodir = vim.fn.stdpath("data") .. "/undo"
-- Create undo directory if it doesn't exist
local undo_dir = vim.fn.stdpath("data") .. "/undo"
if vim.fn.isdirectory(undo_dir) == 0 then
vim.fn.mkdir(undo_dir, "p")
end
require("config.lazy")
vim.cmd("set number")
vim.cmd("set signcolumn=number")
vim.cmd("set ignorecase")
vim.cmd("set smartcase")
vim.cmd("set showmatch")
vim.cmd("set incsearch")
vim.cmd("set hlsearch")
vim.cmd("set wildmenu")
vim.cmd("syntax enable")
vim.env.NVIM_TUI_ENABLE_TRUE_COLOR = 1
vim.opt.termguicolors = true
-- Treesitter setup moved to lazy.nvim config
-- Telescope setup moved to lazy.nvim config with key-based lazy loading
-- Trouble, Comment, Focus setups moved to lazy.nvim config with lazy loading
-- Explicit leap.nvim keymaps (avoids conflict warnings with cutlass)
vim.keymap.set({ "n", "x", "o" }, "s", "<Plug>(leap-forward)", { silent = true })
vim.keymap.set({ "n", "x", "o" }, "S", "<Plug>(leap-backward)", { silent = true })
-- Setup breadcrumbs toggle system
require("breadcrumbs").setup()
vim.keymap.set("n", "<leader>bc", function()
require("breadcrumbs").toggle()
end, { desc = "Toggle breadcrumbs" })
-- CMP setup moved to lazy.nvim config with InsertEnter event
-- LSP setup moved to mason-lspconfig in lazy.nvim config
-- Lualine setup moved to lazy.nvim config with VeryLazy event
vim.g["NERDCompactSexyComs"] = 1
-- REMOVED: Window navigation keymaps (now handled by smart-splits.nvim)
-- REMOVED: Fundo reference (now using native persistent undo)
-- Mason-nvim-lint, lint, codesnap setups moved to lazy.nvim configs with lazy loading
-- Catppuccin, wilder, and toggleterm setups moved to lazy.nvim configs