refactor config

This commit is contained in:
Alexander Navarro 2023-02-13 01:53:52 -03:00
commit 4f0e213f4a
155 changed files with 13983 additions and 0 deletions

View file

@ -0,0 +1,17 @@
local cmd = vim.api.nvim_create_autocmd
-- cmd({"BufNewFile", "BufFilePre", "BufRead"}, {
-- pattern = {"*.md"},
-- callback = function() vim.opt.filetype = "markdown" end
-- })
cmd("InsertEnter",
{pattern = "*", command = "norm zz", desc = "Center line on insert mode"})
-- highlight yank selection
cmd("TextYankPost", {
pattern = "*",
callback = function() vim.highlight.on_yank() end,
desc = "Highligth line on yank"
})