feat(nvim): add keybind to invoke Z usercmd

This commit is contained in:
Price Hiller 2024-03-13 21:19:44 -05:00
parent 003990de61
commit 9c79f8ea09
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB

View File

@ -1,5 +1,3 @@
local M = {}
local augroup = vim.api.nvim_create_augroup("user-autocmds", { clear = false }) local augroup = vim.api.nvim_create_augroup("user-autocmds", { clear = false })
vim.api.nvim_create_autocmd("BufReadPre", { vim.api.nvim_create_autocmd("BufReadPre", {
group = augroup, group = augroup,
@ -20,4 +18,5 @@ vim.api.nvim_create_autocmd("BufReadPre", {
end, end,
}) })
return M -- Keymap to easily invoke `Z` user command
vim.keymap.set("n", "<leader>z", ":Z ", { silent = true, desc = "Invoke `Z`" })