From d1aa9a979cbfe8b581f63295d30d49b77cad5b84 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Mon, 5 Aug 2024 22:12:19 +0300 Subject: refactor(nvim)!: Notify function signature and Notify usages --- .config/nvim/lua/custom/config/commands.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to '.config/nvim/lua/custom/config/commands.lua') diff --git a/.config/nvim/lua/custom/config/commands.lua b/.config/nvim/lua/custom/config/commands.lua index 9cec025..acb2cbb 100644 --- a/.config/nvim/lua/custom/config/commands.lua +++ b/.config/nvim/lua/custom/config/commands.lua @@ -32,19 +32,19 @@ vim.api.nvim_create_user_command('FormatToggle', function(args) if is_global then vim.g.disable_autoformat = not vim.g.disable_autoformat if vim.g.disable_autoformat then - Notify('Autoformat-on-save disabled globally', 'info') + Notify('Autoformat on save disabled globally') else - Notify('Autoformat-on-save enabled globally', 'info') + Notify('Autoformat on save enabled globally') end else vim.b.disable_autoformat = not vim.b.disable_autoformat if vim.b.disable_autoformat then - Notify('Autoformat-on-save disabled for this buffer', 'info') + Notify('Autoformat on save disabled for this buffer') else - Notify('Autoformat-on-save enabled for this buffer', 'info') + Notify('Autoformat on save enabled for this buffer') end end end, { - desc = 'Toggle autoformat-on-save', + desc = 'Toggle autoformat on save', bang = true, }) -- cgit v1.3.1