53 lines
920 B
Lua
53 lines
920 B
Lua
-- Leader
|
|
vim.g.mapleader = " "
|
|
vim.g.maplocalleader = " "
|
|
vim.opt.timeoutlen = 300
|
|
|
|
-- Numbers
|
|
vim.opt.number = true
|
|
vim.opt.relativenumber = true
|
|
|
|
-- Mouse
|
|
vim.opt.mouse = "a"
|
|
|
|
-- Use system clipboard
|
|
vim.schedule(function()
|
|
vim.opt.clipboard = "unnamedplus"
|
|
end)
|
|
|
|
-- Indent
|
|
vim.opt.breakindent = true
|
|
|
|
-- History
|
|
vim.opt.undofile = true
|
|
vim.opt.updatetime = 250
|
|
|
|
-- Search
|
|
vim.opt.ignorecase = true
|
|
vim.opt.smartcase = true
|
|
|
|
-- UI
|
|
vim.opt.signcolumn = "yes"
|
|
vim.opt.scrolloff = 5
|
|
vim.opt.wrap = false
|
|
|
|
-- Splits
|
|
vim.opt.splitright = true
|
|
vim.opt.splitbelow = true
|
|
|
|
-- Whitespaces
|
|
vim.opt.list = true
|
|
-- vim.opt.listchars = { tab = "» ", trail = "·", nbsp = "␣" }
|
|
vim.opt.listchars = { tab = "▎ ", trail = "·", nbsp = "␣" }
|
|
|
|
-- Preview substitutions
|
|
vim.opt.inccommand = "split"
|
|
|
|
-- Colors
|
|
vim.opt.termguicolors = true
|
|
vim.opt.cursorline = true
|
|
|
|
-- Statusline
|
|
vim.opt.laststatus = 3
|
|
vim.opt.showmode = false
|