From 21c7053f8e2eb83f5cc38dcdaea5443eda24e9d6 Mon Sep 17 00:00:00 2001 From: Oscar Wallberg Date: Wed, 15 Oct 2025 20:34:02 +0200 Subject: [PATCH] feat: add some command aliases --- init.lua | 1 + lua/core/commands.lua | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 lua/core/commands.lua diff --git a/init.lua b/init.lua index 6fe389b..8258ba2 100644 --- a/init.lua +++ b/init.lua @@ -6,6 +6,7 @@ local files = { "globals", "options", "autocommands", + "commands", "mappings", } diff --git a/lua/core/commands.lua b/lua/core/commands.lua new file mode 100644 index 0000000..040561b --- /dev/null +++ b/lua/core/commands.lua @@ -0,0 +1,3 @@ +vim.api.nvim_create_user_command("W", "w", { desc = "Alias to :w" }) +vim.api.nvim_create_user_command("Q", "q", { desc = "Alias to :q" }) +vim.api.nvim_create_user_command("Qa", "q", { desc = "Alias to :qa" })