chore: some qol crap

This commit is contained in:
Mariano Z. 2025-04-02 18:07:53 -03:00
parent 867159343a
commit 6fb744cdae
Signed by: marianozunino
GPG key ID: 4C73BAD25156DACE
34 changed files with 433 additions and 598 deletions

View file

@ -39,9 +39,9 @@ end, { desc = "Quit all" })
-- create a user command to save without formatting :noa w
vim.api.nvim_create_user_command("W", function()
-- if buffer is empty, don't save
if vim.fn.empty(vim.fn.expand("%:t")) == 1 then
return vim.notify("Buffer is empty, not saving", vim.log.levels.ERROR)
Snacks.notifier.notify("Buffer is empty, not saving", vim.log.levels.ERROR)
return
end
vim.api.nvim_command("noa w")
end, { nargs = 0, desc = "Save without formatting" })