Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
desdic committed Mar 21, 2024
1 parent fa3d9bb commit 5d56ca1
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions lua/marlin/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -354,18 +354,15 @@ marlin.setup = function(opts)
if not marlin.opts.save_cursor_location then
return
end

local augroup = vim.api.nvim_create_augroup("marlin", {})
vim.api.nvim_create_autocmd(
{ "CursorMoved", "BufLeave", "VimLeavePre" },
{
group = augroup,
pattern = "*",
callback = function(_)
update_location(marlin)
end,
}
)
vim.api.nvim_create_autocmd({ "CursorMoved", "BufLeave", "VimLeavePre" }, {
group = augroup,
pattern = "*",
callback = function(_)
update_location(marlin)
end,
})
end
--- Sort indexes
---
Expand Down

0 comments on commit 5d56ca1

Please sign in to comment.