Renamed autocmd to cmd and made a custom user cmd

This commit is contained in:
2023-09-22 19:10:13 +02:00
parent 449551fabb
commit 8c9ad2511a

View File

@@ -1,9 +1,16 @@
local autocmd = vim.api.nvim_create_autocmd
local augroup = vim.api.nvim_create_augroup
local cmd = vim.api.nvim_create_user_command
-- Groups
local nvimhelp = augroup("help_window_right", {})
local mkdirrun = augroup("MkdirRun", { clear = true })
cmd("ThemeSwitcher", function()
require("taken.functions.themes").themeselector()
end, {
desc = "Select a theme",
})
autocmd("BufWinEnter", {
group = nvimhelp,
pattern = { "*.txt" },