summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/custom/config/commands.lua
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2025-04-24 11:23:18 +0300
committerKyren223 <Kyren223@proton.me>2025-04-24 11:23:18 +0300
commitdbd9a6fdd0c44e26b200fb706aacd120a2e09c47 (patch)
tree75b4c4c0e5caa991e12636609c4d1bcb062f8e16 /.config/nvim/lua/custom/config/commands.lua
parent007f71ce692f32b7b57a048bf55348aca3c9933d (diff)
Replaced my global notify with snacks notify
Diffstat (limited to '.config/nvim/lua/custom/config/commands.lua')
-rw-r--r--.config/nvim/lua/custom/config/commands.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/.config/nvim/lua/custom/config/commands.lua b/.config/nvim/lua/custom/config/commands.lua
index 4477733..7135eeb 100644
--- a/.config/nvim/lua/custom/config/commands.lua
+++ b/.config/nvim/lua/custom/config/commands.lua
@@ -32,16 +32,16 @@ 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')
+ Snacks.notify.info('Autoformat on save disabled globally', { title = 'test' })
else
- Notify('Autoformat on save enabled globally')
+ Snacks.notify.info('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')
+ Snacks.notify.info('Autoformat on save disabled for this buffer')
else
- Notify('Autoformat on save enabled for this buffer')
+ Snacks.notify.info('Autoformat on save enabled for this buffer')
end
end
end, {