2025-01-04 08:07:29 -06:00
|
|
|
-- for brevity
|
|
|
|
local o = vim.opt
|
|
|
|
|
2025-01-04 12:56:54 -06:00
|
|
|
-- set language
|
2025-01-05 15:43:21 -06:00
|
|
|
if jit.os == "OSX" then
|
|
|
|
vim.cmd("language en_US")
|
|
|
|
else
|
|
|
|
vim.cmd("language en_US.utf8")
|
|
|
|
end
|
2025-01-04 12:56:54 -06:00
|
|
|
|
2025-01-04 08:07:29 -06:00
|
|
|
-- show line numbers
|
|
|
|
o.number = true
|
|
|
|
|
2025-02-10 13:50:03 -06:00
|
|
|
-- 80 column indicator
|
|
|
|
o.colorcolumn = "80"
|
|
|
|
|
2025-01-04 08:07:29 -06:00
|
|
|
-- enable mouse mode
|
|
|
|
o.mouse = "a"
|
|
|
|
|
|
|
|
-- dont show the mode since it's in lualine
|
|
|
|
o.showmode = false
|
|
|
|
|
|
|
|
-- faster updates
|
|
|
|
o.updatetime = 100
|
|
|
|
|
|
|
|
-- tabs
|
|
|
|
o.autoindent = true
|
|
|
|
o.smartindent = true
|
|
|
|
o.expandtab = false
|
|
|
|
o.tabstop = 4
|
|
|
|
o.shiftwidth = 4
|
|
|
|
|
|
|
|
-- indent wrapped lines of text
|
|
|
|
o.breakindent = true
|
|
|
|
|
|
|
|
-- save undo history
|
|
|
|
o.undofile = true
|
|
|
|
|
|
|
|
-- make search case insensitive unless \C or mixed-case is in the search
|
|
|
|
o.ignorecase = true
|
|
|
|
o.smartcase = true
|
|
|
|
|
|
|
|
-- keep sign column visible
|
|
|
|
o.signcolumn = "yes"
|
|
|
|
|
|
|
|
-- show which line the cursor is on
|
|
|
|
o.cursorline = true
|