33 lines
1.3 KiB
Lua
33 lines
1.3 KiB
Lua
-- Line numbers
|
|
vim.opt.number = true -- show absolute line numbers
|
|
vim.opt.relativenumber = true -- show relative line numbers
|
|
|
|
-- Mouse & clipboard
|
|
vim.opt.mouse = "a" -- enable mouse support
|
|
vim.opt.clipboard = "unnamedplus" -- use system clipboard
|
|
|
|
-- Visual behavior
|
|
vim.opt.termguicolors = true -- enable true colors
|
|
vim.opt.cursorline = true -- highlight the current line
|
|
vim.opt.wrap = false -- do not wrap long lines
|
|
vim.opt.signcolumn = "yes" -- always show the sign number (LSP, git)
|
|
|
|
-- Scrolling
|
|
vim.opt.scrolloff = 8 -- keep space above/below cursor
|
|
vim.opt.sidescrolloff = 8 -- keep space left/right of cursor
|
|
|
|
-- Indentation
|
|
vim.opt.expandtab = true -- use spaces instead of tabs
|
|
vim.opt.tabstop = 2 -- how many spaces a tab looks like
|
|
vim.opt.shiftwidth = 2 -- how many spaces when indenting
|
|
|
|
-- Search
|
|
vim.opt.ignorecase = true -- case-insensitive search
|
|
vim.opt.smartcase = true -- case-sensitive if uppercase is used
|
|
vim.opt.incsearch = true -- show matches while typing
|
|
vim.opt.hlsearch = false -- do not keep matches highlighted
|
|
|
|
-- Window splits
|
|
vim.opt.splitbelow = true -- horizontal splits open below
|
|
vim.opt.splitright = true -- vertical splits open to the right
|
|
|