neovim configuration

This commit is contained in:
2026-03-22 13:00:29 +01:00
commit 2da113baae
10 changed files with 431 additions and 0 deletions

14
lua/config/options.lua Normal file
View File

@@ -0,0 +1,14 @@
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