From 61f3b45c0b50d23f844b83c957dd229f748a7514 Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Thu, 7 Nov 2024 15:05:15 +0100 Subject: [PATCH] Alias for Trim --- lua/autocmd.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/autocmd.lua b/lua/autocmd.lua index 2d6b31d..ef6d522 100644 --- a/lua/autocmd.lua +++ b/lua/autocmd.lua @@ -5,6 +5,7 @@ -- These should be self-explanatory vim.api.nvim_create_user_command('Cd', 'cd %:h', { desc = 'Change directory to the current file' }) vim.api.nvim_create_user_command('Py', '!python %', { desc = 'Execute python file' }) +vim.api.nvim_create_user_command('Trim', 'lua MiniTrailspace.trim()', { desc = 'Trim trailing whitespace' }) -- Instantly move help window to the right -- This is almost certainly a hacky way to do this)