From 669561e21073e6efafddda25ba3ace69fb43819e Mon Sep 17 00:00:00 2001 From: Ariel D'Alessandro Date: Tue, 31 Jan 2023 09:44:13 +0100 Subject: feat: apply stylua --- lua/alpha/harpoon.lua | 51 ++++++++++++++++++++++++++------------------------- 1 file changed, 26 insertions(+), 25 deletions(-) (limited to 'lua/alpha/harpoon.lua') diff --git a/lua/alpha/harpoon.lua b/lua/alpha/harpoon.lua index 209424f..78e6e9b 100644 --- a/lua/alpha/harpoon.lua +++ b/lua/alpha/harpoon.lua @@ -1,43 +1,44 @@ -local M = {}; +local M = {} -- changing this values will require re-compile packer local terms = vim.g.harpoon_terms or 3 local quick_binds = vim.g.harpoon_quick_binds or 5 M.keymaps = { - {"ss"}, - {"sa"}, + { "ss" }, + { "sa" }, } for i = 1, terms do - table.insert(M.keymaps, {string.format("%s", i)}) + table.insert(M.keymaps, { string.format("%s", i) }) end for i = 1, quick_binds do - table.insert(M.keymaps, {string.format("%s", i)}) + table.insert(M.keymaps, { string.format("%s", i) }) end M.setup = function() - require('harpoon').setup() - - vim.keymap.set('n', 'ss', require("harpoon.ui").toggle_quick_menu, { noremap = true, silent = true, expr = false }) - vim.keymap.set('n', 'sa', require("harpoon.mark").add_file, { noremap = true, silent = true, expr = false }) - - for i = 1, terms do - vim.keymap.set('n', string.format('%s', i), function() require("harpoon.term").gotoTerminal(i) end, - { noremap = true, silent = true, expr = false }) - end - - for i = 1, quick_binds do - vim.keymap.set( - 'n', - string.format("%s", i), - function() - require("harpoon.ui").nav_file(i) - end, - { noremap = true, silent = true, expr = false } - ) - end + require("harpoon").setup() + + vim.keymap.set( + "n", + "ss", + require("harpoon.ui").toggle_quick_menu, + { noremap = true, silent = true, expr = false } + ) + vim.keymap.set("n", "sa", require("harpoon.mark").add_file, { noremap = true, silent = true, expr = false }) + + for i = 1, terms do + vim.keymap.set("n", string.format("%s", i), function() + require("harpoon.term").gotoTerminal(i) + end, { noremap = true, silent = true, expr = false }) + end + + for i = 1, quick_binds do + vim.keymap.set("n", string.format("%s", i), function() + require("harpoon.ui").nav_file(i) + end, { noremap = true, silent = true, expr = false }) + end end return M -- cgit v1.2.3