nvim/lua/zynh/set.lua

44 lines
645 B
Lua
Raw Normal View History

2023-04-07 08:14:43 +00:00
local opt = vim.opt
2023-03-10 14:58:22 +00:00
2023-04-07 08:14:43 +00:00
opt.nu = true
opt.relativenumber = true
2023-03-10 14:58:22 +00:00
2023-04-07 08:14:43 +00:00
opt.tabstop = 4
opt.softtabstop = 4
opt.shiftwidth = 4
opt.expandtab = true
opt.smartindent = true
2023-03-10 14:58:22 +00:00
-- Mouse mode
2023-04-07 08:14:43 +00:00
opt.mouse = 'a'
-- Make splitting more natural
opt.splitright = true
opt.splitbelow = true
2023-03-10 14:58:22 +00:00
2023-04-07 08:14:43 +00:00
opt.wrap = false
2023-03-10 14:58:22 +00:00
2023-04-07 08:14:43 +00:00
opt.swapfile = false
opt.backup = false
opt.undodir = os.getenv("HOME") .. "/.vim/undodir"
opt.undofile = true
2023-03-10 14:58:22 +00:00
2023-04-07 08:14:43 +00:00
opt.hlsearch = false
opt.incsearch = true
2023-03-10 14:58:22 +00:00
2023-04-07 08:14:43 +00:00
opt.termguicolors = true
2023-03-10 14:58:22 +00:00
2023-04-07 08:14:43 +00:00
opt.scrolloff = 8
opt.signcolumn = "yes"
opt.isfname:append("@-@")
2023-03-10 14:58:22 +00:00
2023-04-07 08:14:43 +00:00
opt.updatetime = 50
2023-03-10 14:58:22 +00:00
2023-04-07 08:14:43 +00:00
opt.colorcolumn = "80,120"
2023-03-11 20:56:37 +00:00
2023-04-07 08:14:43 +00:00
opt.conceallevel = 2
2023-03-16 22:33:22 +00:00
vim.g.netrw_list_hide = ".DS_Store"
2023-04-07 08:14:43 +00:00