46 lines
769 B
Lua
46 lines
769 B
Lua
-- English comments only.
|
|
|
|
local opt = vim.opt
|
|
|
|
-- General
|
|
opt.encoding = "utf-8"
|
|
opt.mouse = "a"
|
|
opt.clipboard = "unnamedplus"
|
|
opt.swapfile = false
|
|
opt.backup = false
|
|
opt.undofile = true
|
|
opt.hidden = true
|
|
|
|
-- UI
|
|
opt.number = true
|
|
opt.relativenumber = true
|
|
opt.cursorline = true
|
|
opt.termguicolors = true
|
|
opt.signcolumn = "yes"
|
|
opt.wrap = false
|
|
opt.scrolloff = 8
|
|
opt.sidescrolloff = 8
|
|
|
|
-- Splits
|
|
opt.splitbelow = true
|
|
opt.splitright = true
|
|
|
|
-- Tabs / Indent
|
|
opt.expandtab = true
|
|
opt.tabstop = 2
|
|
opt.shiftwidth = 2
|
|
opt.smartindent = true
|
|
|
|
-- Search
|
|
opt.ignorecase = true
|
|
opt.smartcase = true
|
|
opt.incsearch = true
|
|
opt.hlsearch = false
|
|
|
|
-- Performance
|
|
opt.updatetime = 300
|
|
opt.timeoutlen = 500
|
|
|
|
-- Better completion menu
|
|
opt.completeopt = { "menu", "menuone", "noselect" }
|