2022-11-06 14:07:55 +00:00
|
|
|
vim.opt.guicursor = ""
|
|
|
|
|
|
|
|
vim.opt.nu = true
|
|
|
|
vim.opt.relativenumber = true
|
|
|
|
|
|
|
|
vim.opt.errorbells = false
|
|
|
|
|
|
|
|
vim.opt.tabstop = 4
|
|
|
|
vim.opt.softtabstop = 4
|
|
|
|
vim.opt.shiftwidth = 4
|
|
|
|
vim.opt.expandtab = true
|
|
|
|
|
|
|
|
vim.opt.smartindent = true
|
|
|
|
|
|
|
|
vim.opt.wrap = false
|
|
|
|
|
|
|
|
vim.opt.swapfile = false
|
|
|
|
vim.opt.backup = false
|
|
|
|
vim.opt.undodir = vim.fn.stdpath("data") .. "undo"
|
|
|
|
vim.opt.undofile = true
|
|
|
|
|
|
|
|
-- vim.opt.hlsearch = false
|
|
|
|
vim.opt.incsearch = true
|
|
|
|
|
|
|
|
vim.opt.termguicolors = true
|
|
|
|
|
|
|
|
vim.opt.scrolloff = 8
|
|
|
|
vim.opt.signcolumn = "yes"
|
|
|
|
vim.opt.isfname:append("@-@")
|
|
|
|
|
|
|
|
-- Give more space for displaying messages.
|
|
|
|
vim.opt.cmdheight = 1
|
|
|
|
|
|
|
|
-- Having longer updatetime (default is 4000 ms = 4 s) leads to noticeable
|
|
|
|
-- delays and poor user experience.
|
|
|
|
vim.opt.updatetime = 50
|
|
|
|
|
|
|
|
vim.opt.timeoutlen = 500
|
|
|
|
vim.opt.ttimeoutlen = 0
|
|
|
|
-- Don't pass messages to |ins-completion-menu|.
|
|
|
|
vim.opt.shortmess:append("c")
|
|
|
|
|
|
|
|
vim.opt.colorcolumn = "80"
|
|
|
|
|
|
|
|
vim.g.mapleader = " "
|
|
|
|
vim.wo.cursorline = true
|
2022-11-06 20:23:46 +00:00
|
|
|
|
|
|
|
-- Enable mouse support
|
|
|
|
vim.opt.mouse = 'a'
|
2023-02-21 13:00:51 +00:00
|
|
|
|
|
|
|
vim.opt.termguicolors = true
|