Update to personal config

This commit is contained in:
salomaestro
2024-09-29 01:54:16 +02:00
parent 59f23d053a
commit de44ebf3b9
6 changed files with 172 additions and 3 deletions

View File

@@ -2,5 +2,19 @@ require "nvchad.options"
-- add yours here!
-- local o = vim.o
local o = vim.o
local opt = vim.opt
-- o.cursorlineopt ='both' -- to enable cursorline!
o.scrolloff = 10
opt.relativenumber = true
local highlight_group = vim.api.nvim_create_augroup("yankhighlight", { clear = true })
vim.api.nvim_create_autocmd("textyankpost", {
callback = function()
vim.highlight.on_yank()
end,
group = highlight_group,
pattern = "*",
})