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