init.lua/lua/crony/set.lua

64 lines
1.2 KiB
Lua
Raw Normal View History

2023-12-24 17:10:09 +01:00
local opt = vim.opt
2023-12-24 12:06:23 +01:00
-- Don't highlight on search
2023-12-24 17:10:09 +01:00
opt.hlsearch = false
opt.incsearch = true
2023-12-24 12:06:23 +01:00
-- Enable line numbers by default
2023-12-24 17:10:09 +01:00
opt.number = true
opt.relativenumber = true
2023-12-24 12:06:23 +01:00
-- Tab settings
2023-12-24 17:10:09 +01:00
opt.tabstop = 4
opt.softtabstop = 4
opt.shiftwidth = 4
opt.expandtab = true
2023-12-24 12:06:23 +01:00
-- Enable smart indenting
2023-12-24 17:10:09 +01:00
opt.smartindent = true
2023-12-24 12:06:23 +01:00
-- Enable the mouse, just to have it
2023-12-24 17:10:09 +01:00
opt.mouse = 'a'
2023-12-24 12:06:23 +01:00
-- Enable break indent
2023-12-24 17:10:09 +01:00
opt.breakindent = true
2023-12-24 12:06:23 +01:00
-- History settings
2023-12-24 17:10:09 +01:00
opt.undofile = true
opt.undodir = os.getenv("HOME") .. "/.local/state/nvim"
opt.swapfile = true
opt.swapfile = true
2023-12-24 12:06:23 +01:00
-- Case-insensitive searching UNLESS \C or capital in search
2023-12-24 17:10:09 +01:00
opt.ignorecase = true
opt.smartcase = true
2023-12-24 12:06:23 +01:00
-- Keep signcolumn on by default
2023-12-24 17:10:09 +01:00
opt.signcolumn = 'yes'
2023-12-24 12:06:23 +01:00
-- Decrease update time
2023-12-24 17:10:09 +01:00
opt.updatetime = 50
opt.timeoutlen = 300
2023-12-24 12:06:23 +01:00
-- Set completeopt to have a better completion experience
2023-12-24 17:10:09 +01:00
opt.completeopt = 'menuone,noselect'
2023-12-24 12:06:23 +01:00
-- Enable true color support
2023-12-24 17:10:09 +01:00
opt.termguicolors = true
2023-12-24 12:06:23 +01:00
-- Enable scroll off
2023-12-24 17:10:09 +01:00
opt.scrolloff = 8
2023-12-24 12:06:23 +01:00
-- Color the 80 column
2023-12-24 17:10:09 +01:00
opt.colorcolumn = "80"
-- Don't show mode I'm in, already have a nice status line for that
opt.showmode = false
-- Enable global status line
opt.laststatus = 3
-- Better split options
opt.splitbelow = true
opt.splitright = true