35 lines
1.1 KiB
Lua
35 lines
1.1 KiB
Lua
-- base/base.lua
|
|
|
|
-- Shorten vim.opt for ease of use
|
|
local o = vim.opt
|
|
|
|
-- General settings
|
|
o.number = true -- Show line numbers
|
|
o.relativenumber = true -- Relative line numbers
|
|
o.expandtab = true -- Use spaces instead of tabs
|
|
o.tabstop = 4 -- Number of spaces per tab
|
|
o.shiftwidth = 4 -- Number of spaces for indentation
|
|
o.smartindent = true -- Enable smart indentation
|
|
o.autoindent = true -- Enable auto indentation
|
|
o.wrap = false -- Disable line wrapping
|
|
o.scrolloff = 8 -- Keep 8 lines visible above and below the cursor
|
|
|
|
-- Search settings
|
|
o.ignorecase = true -- Ignore case in searches
|
|
o.smartcase = true -- Enable smart case search
|
|
|
|
-- Backups and undo
|
|
o.swapfile = false -- Disable swap file
|
|
o.undofile = true -- Enable persistent undo
|
|
|
|
-- Clipboard
|
|
o.clipboard = "unnamedplus" -- Use system clipboard
|
|
|
|
-- Cursor line and column
|
|
o.cursorline = true -- Highlight the current line
|
|
o.cursorcolumn = true -- Highlight the current column
|
|
|
|
-- Command line height
|
|
o.cmdheight = 2 -- Set command-line height
|
|
|