nvim/lua/lorenz/set.lua

53 lines
1.0 KiB
Lua

vim.opt.nu = true
vim.opt.relativenumber = true
vim.opt.smartindent = true
-- set termguicolors to enable highlight groups
vim.opt.termguicolors = true
vim.wo.wrap = false
vim.opt.tabstop = 2
vim.opt.shiftwidth = 2
vim.opt.softtabstop = 2
--scroll
vim.opt.scrolloff = 8
vim.opt.updatetime = 50
-- Set highlight on search
vim.o.hlsearch = false
-- Make line numbers default
vim.wo.number = true
-- Enable mouse mode
vim.o.mouse = 'a'
-- Enable break indent
vim.o.breakindent = true
-- Save undo history
vim.o.undofile = true
-- Case-insensitive searching UNLESS \C or capital in search
vim.o.ignorecase = true
vim.o.smartcase = true
-- Keep signcolumn on by default
vim.wo.signcolumn = 'yes'
-- Decrease update time
vim.o.updatetime = 250
vim.o.timeoutlen = 300
-- Set completeopt to have a better completion experience
vim.o.completeopt = 'menuone,noselect'
-- NOTE: You should make sure your terminal supports this
vim.o.termguicolors = true
vim.o.errorbells = false
vim.o.visualbell = true
vim.o.timeoutlen = 500