46 lines
950 B
Lua
46 lines
950 B
Lua
local o = vim.opt
|
|
|
|
o.number = true
|
|
o.relativenumber = true
|
|
o.signcolumn = "yes:2"
|
|
o.termguicolors = true
|
|
o.cursorline = true
|
|
o.mouse = "a"
|
|
o.laststatus = 3
|
|
o.inccommand = "split"
|
|
o.linebreak = true
|
|
o.autowrite = true
|
|
o.timeoutlen = 300
|
|
o.pumheight = 10
|
|
o.pumblend = 10
|
|
o.shada = { "'10", "<0", "s10", "h" }
|
|
|
|
-- Unused language hosts
|
|
vim.g.loaded_perl_provider = 0
|
|
vim.g.loaded_ruby_provider = 0
|
|
vim.g.loaded_node_provider = 0
|
|
vim.g.loaded_python3_provider = 0
|
|
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
|