mirror of
https://gitlab.com/sagidayan/linux-config.git
synced 2024-10-31 21:15:25 +00:00
51 lines
1,014 B
Lua
51 lines
1,014 B
Lua
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
|
|
|
|
-- Enable mouse support
|
|
vim.opt.mouse = 'a'
|
|
|
|
vim.opt.termguicolors = true
|