30 lines
593 B
Lua
30 lines
593 B
Lua
local o = vim.opt
|
|
|
|
o.number = true
|
|
o.relativenumber = true
|
|
o.signcolumn = "yes"
|
|
o.termguicolors = true
|
|
o.showmode = false -- mini.statusline shows it
|
|
|
|
o.expandtab = true
|
|
o.shiftwidth = 2
|
|
o.tabstop = 2
|
|
o.softtabstop = 2
|
|
|
|
o.undofile = true -- undodir defaults to stdpath("state")/undo
|
|
o.swapfile = false
|
|
|
|
o.scrolloff = 8
|
|
o.splitright = true
|
|
o.splitbelow = true
|
|
o.ignorecase = true
|
|
o.smartcase = true
|
|
|
|
o.foldlevel = 99 -- treesitter sets foldexpr per buffer
|
|
o.updatetime = 250
|
|
|
|
-- Clipboard is not synced. Over SSH, "+ goes through OSC 52.
|
|
if vim.env.SSH_TTY then
|
|
vim.g.clipboard = "osc52"
|
|
end
|