Files
nvim-config/lua/config/options.lua
2026-03-22 13:00:29 +01:00

15 lines
825 B
Lua

vim.g.mapleader = "," -- Set leader key to comma
vim.o.number = true -- Show absolute line numbers
vim.o.wrap = false -- Disable line wrapping globally
vim.o.tabstop = 4 -- Width of a raw <Tab> character
vim.o.shiftwidth = 4 -- Number of spaces used for autoindent
vim.o.expandtab = true -- Use spaces instead of tabs
vim.o.smartcase = true -- Override ignorecase if search contains uppercase
vim.o.ignorecase = true -- Case-insensitive searching
vim.o.hlsearch = false -- Disable persistent search highlighting
vim.o.signcolumn = "yes" -- Always show the sign column (prevents text shifting)
vim.o.clipboard = "unnamedplus" -- Sync Neovim with the system clipboard
vim.o.undofile = true -- Enable persistent undo history between sessions
vim.o.undodir = vim.fn.expand("~/.cache/nvim-undodir") -- Path to store undo history