Something went wrong. Try again.
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263require('vim._core.ui2').enable()
vim.opt.fileformats = "dos,unix,mac"
-- Set leader key before loading pluginsvim.g.mapleader = " "vim.g.maplocalleader = " "
-- Line Numbersvim.opt.number = true -- Show line numbersvim.opt.relativenumber = true -- Show relative line numbers for faster navigation
-- Confirm & Unsaved Changesvim.opt.confirm = true -- Confirm to save changes before exiting modified buffer (instead of throwing an error)
-- Indentation & Tabsvim.opt.tabstop = 4 -- Number of spaces that a <Tab> counts forvim.opt.shiftwidth = 4 -- Number of spaces to use for each step of (auto)indentvim.opt.expandtab = true -- Convert tabs to spacesvim.opt.smartindent = true -- Auto-indent new lines intelligently
-- Search Settingsvim.opt.ignorecase = true -- Case-insensitive search...vim.opt.smartcase = true -- ...unless \C or uppercase letters are usedvim.opt.hlsearch = true -- Highlight all matches on previous searchvim.opt.incsearch = true -- Show search matches as you type
-- UI & Editor Layoutvim.opt.termguicolors = true -- Enable 24-bit RGB colors in the TUIvim.opt.cursorline = true -- Highlight the current linevim.opt.signcolumn = "yes" -- Always show signcolumn (prevents text shift on LSP/Git diagnostics)vim.opt.scrolloff = 8 -- Keep 8 lines visible above/below cursor when scrollingvim.opt.wrap = false -- Disable line wrappingvim.opt.splitright = true -- Vertical splits open to the rightvim.opt.splitbelow = true -- Horizontal splits open below
-- Clipboard & Filesvim.opt.clipboard = "unnamedplus" -- Sync clipboard between OS and Neovimvim.opt.undofile = true -- Enable persistent undo history across sessionsvim.opt.updatetime = 250 -- Faster completion / CursorHold event trigger (default 4000ms)vim.opt.timeoutlen = 300 -- Time to wait for mapped sequence to complete (in milliseconds)
-- Enable persistent undovim.opt.undofile = true
-- Define the undo directory pathlocal undodir = vim.fn.expand(vim.fn.stdpath("data") .. "/undo")
-- Create the directory if it doesn't exist (important for Windows)-- if vim.fn.isdirectory(undodir) == 0 then-- vim.fn.mkdir(undodir, "p")-- end
vim.opt.undodir = undodir