45 lines
852 B
Lua
45 lines
852 B
Lua
local opt = vim.opt
|
|
|
|
opt.expandtab = true
|
|
opt.shiftwidth = 4
|
|
opt.smartindent = true
|
|
opt.softtabstop = 4
|
|
|
|
opt.hidden = true
|
|
opt.swapfile = false
|
|
|
|
opt.splitright = true
|
|
opt.splitbelow = true
|
|
|
|
opt.number = true
|
|
opt.relativenumber = true
|
|
|
|
opt.cursorline = true
|
|
opt.colorcolumn = "80"
|
|
opt.signcolumn = "yes"
|
|
opt.laststatus = 3
|
|
|
|
opt.ignorecase = true
|
|
opt.inccommand = 'nosplit'
|
|
opt.incsearch = true
|
|
opt.smartcase = true
|
|
|
|
opt.scrolloff = 5
|
|
opt.termguicolors = true
|
|
opt.timeoutlen = 500
|
|
opt.wrap = false
|
|
|
|
opt.list = true
|
|
opt.listchars = { eol = "↲", nbsp = '␣', tab = '» ', trail = '·' }
|
|
opt.fillchars = { eob = " " }
|
|
|
|
opt.exrc = true
|
|
opt.mouse = "a"
|
|
|
|
vim.api.nvim_create_autocmd("TextYankPost", {
|
|
pattern = "*",
|
|
group = vim.api.nvim_create_augroup("Highlight on Yank", { clear = true }),
|
|
callback = function()
|
|
vim.highlight.on_yank()
|
|
end
|
|
})
|