refactor config
This commit is contained in:
commit
4f0e213f4a
155 changed files with 13983 additions and 0 deletions
17
config/nvim.old/lua/autocommands.lua
Normal file
17
config/nvim.old/lua/autocommands.lua
Normal 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"
|
||||
})
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue