33 lines
844 B
Lua
33 lines
844 B
Lua
local opt = vim.opt
|
|
|
|
-- Line numbers
|
|
opt.number = true
|
|
opt.relativenumber = true
|
|
|
|
-- Tabs & indentation
|
|
opt.tabstop = 4 -- number of spaces a tab counts for
|
|
opt.shiftwidth = 4 -- spaces for each indent
|
|
opt.expandtab = true -- convert tabs to spaces
|
|
opt.smartindent = true
|
|
|
|
-- Searching
|
|
opt.ignorecase = true -- case-insensitive search...
|
|
opt.smartcase = true -- ...unless you use capitals
|
|
opt.hlsearch = true
|
|
opt.incsearch = true
|
|
|
|
-- UI / UX
|
|
opt.termguicolors = true
|
|
opt.cursorline = true
|
|
opt.signcolumn = "yes" -- avoid text shifting
|
|
opt.wrap = false -- no line wrapping
|
|
|
|
-- Behavior
|
|
opt.scrolloff = 8 -- keep lines above/below cursor
|
|
opt.sidescrolloff = 8
|
|
opt.updatetime = 300 -- faster diagnostics
|
|
opt.timeoutlen = 500 -- faster key sequences
|
|
|
|
-- Clipboard (use system clipboard)
|
|
opt.clipboard = "unnamedplus"
|