29 lines
716 B
Lua
29 lines
716 B
Lua
vim.opt.smarttab = true
|
|
vim.opt.autoindent = true
|
|
vim.opt.breakindent = true
|
|
vim.opt.number = true
|
|
vim.o.confirm = true
|
|
--vim.o.inccommand = 'split'
|
|
vim.o.cursorline = true
|
|
vim.o.undofile = true
|
|
vim.o.showmode = false
|
|
vim.o.ignorecase = true
|
|
vim.o.smartcase = true
|
|
vim.o.signcolumn = "yes"
|
|
vim.o.splitright = true
|
|
vim.o.splitbelow = true
|
|
vim.opt.list = true
|
|
vim.opt.listchars = { tab = "» ", trail = "·", nbsp = "␣"}
|
|
vim.opt.scrolloff = 8
|
|
vim.opt.updatetime = 1200;
|
|
|
|
vim.api.nvim_create_autocmd( "TextYankPost", {
|
|
group = vim.api.nvim_create_augroup("YankHighlight", {
|
|
clear = true }),
|
|
pattern = "*",
|
|
callback = function()
|
|
vim.highlight.on_yank()
|
|
end,
|
|
desc = "Highlight Yank",
|
|
})
|