41 lines
880 B
Lua
41 lines
880 B
Lua
vim.o.number = true
|
|
vim.o.relativenumber = true
|
|
|
|
vim.opt.termguicolors = true
|
|
|
|
vim.o.mouse = "a"
|
|
|
|
vim.schedule(function()
|
|
vim.o.clipboard = "unnamedplus"
|
|
end)
|
|
|
|
vim.o.breakindent = true
|
|
vim.o.undofile = true
|
|
|
|
vim.o.ignorecase = true
|
|
vim.o.smartcase = true
|
|
|
|
vim.o.signcolumn = "yes"
|
|
|
|
vim.o.timeoutlen = 300
|
|
|
|
vim.o.splitright = true
|
|
vim.o.splitbelow = true
|
|
|
|
vim.o.list = true
|
|
vim.opt.listchars = { tab = "» ", trail = "·", nbsp = "␣" }
|
|
|
|
-- Preview substitutions live, as you type!
|
|
vim.o.inccommand = "split"
|
|
|
|
-- Show which line your cursor is on
|
|
vim.o.cursorline = true
|
|
|
|
-- Minimal number of screen lines to keep above and below the cursor.
|
|
vim.o.scrolloff = 10
|
|
|
|
-- if performing an operation that would fail due to unsaved changes in the buffer (like `:q`),
|
|
-- instead raise a dialog asking if you wish to save the current file(s)
|
|
-- See `:help 'confirm'`
|
|
vim.o.confirm = true
|