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/utils.lua | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'lua/alpha/utils.lua') diff --git a/lua/alpha/utils.lua b/lua/alpha/utils.lua index 47fd8c6..b1202d6 100644 --- a/lua/alpha/utils.lua +++ b/lua/alpha/utils.lua @@ -1,24 +1,24 @@ local M = {} M.save_and_exec = function() - local source_commands = { - lua = "luafi %", - vim = "source %", - } + local source_commands = { + lua = "luafi %", + vim = "source %", + } - local ft = vim.api.nvim_buf_get_option(0, "filetype") - local command = source_commands[ft] - if command == nil then - vim.notify("This type cant not be sourced", vim.log.levels.ERROR, { title = "Alpha Developer" }) - return - end + local ft = vim.api.nvim_buf_get_option(0, "filetype") + local command = source_commands[ft] + if command == nil then + vim.notify("This type cant not be sourced", vim.log.levels.ERROR, { title = "Alpha Developer" }) + return + end - -- Save and source - vim.api.nvim_command("silent w") - vim.api.nvim_command(command) + -- Save and source + vim.api.nvim_command "silent w" + vim.api.nvim_command(command) - local current_file_name = vim.fn.fnamemodify(vim.api.nvim_buf_get_name(0), ":t") - vim.notify(string.format("File %s Sourced", current_file_name), vim.log.levels.INFO, { title = "Alpha Developer" }) + local current_file_name = vim.fn.fnamemodify(vim.api.nvim_buf_get_name(0), ":t") + vim.notify(string.format("File %s Sourced", current_file_name), vim.log.levels.INFO, { title = "Alpha Developer" }) end return M -- cgit v1.2.3