From 7a4583b8e26cd4a75d104f7902d424804b8ab9c2 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Sun, 19 Jan 2025 15:36:26 -0800 Subject: [PATCH] update argonaut --- lua/config/plugins.lua | 25 ++++++++++++++++++++----- pack/plugins/start/argonaut.nvim | 2 +- 2 files changed, 21 insertions(+), 6 deletions(-) diff --git a/lua/config/plugins.lua b/lua/config/plugins.lua index 1e10710..301e5da 100644 --- a/lua/config/plugins.lua +++ b/lua/config/plugins.lua @@ -1,16 +1,31 @@ -- argonaut.nvim -vim.keymap.set('n', 'a', function() +local function argonaut_boilerplate() vim.cmd.ArgonautReload() require('argonaut').setup({ - auto_reload = true, by_filetype = { c = {brace_last_wrap = false}, cpp = {brace_last_wrap = false}, - lua = {comma_last = true}, }, }) - vim.cmd.ArgonautReflow() -end) +end + +vim.keymap.set( + 'n', + 'a', + function() + argonaut_boilerplate() + vim.cmd.ArgonautToggle() + end +) + +vim.keymap.set( + 'n', + 'o', + function() + argonaut_boilerplate() + vim.cmd.ArgonautReflow() + end +) -- bmessages.nvim require('bmessages').setup({}) diff --git a/pack/plugins/start/argonaut.nvim b/pack/plugins/start/argonaut.nvim index 6b63f79..06113cc 160000 --- a/pack/plugins/start/argonaut.nvim +++ b/pack/plugins/start/argonaut.nvim @@ -1 +1 @@ -Subproject commit 6b63f79b2d65c7575c751d18450c8379f55124a1 +Subproject commit 06113ccb2f108fcabee095c06c9350eef81f31e2