From a5a0820876ca99ffe3e5ba151f9edaec4d6c16c8 Mon Sep 17 00:00:00 2001 From: Raafat Turki Date: Thu, 2 Dec 2021 04:12:56 +0300 Subject: [PATCH] chore: linting --- lua/harpoon/utils.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lua/harpoon/utils.lua b/lua/harpoon/utils.lua index 5f8780d..b2a406b 100644 --- a/lua/harpoon/utils.lua +++ b/lua/harpoon/utils.lua @@ -6,11 +6,11 @@ local M = {} M.data_path = data_path -function M.normalize_path (item) +function M.normalize_path(item) return Path:new(item):make_relative(vim.loop.cwd()) end -function M.get_os_command_output (cmd, cwd) +function M.get_os_command_output(cmd, cwd) if type(cmd) ~= "table" then print("Harpoon: [get_os_command_output]: cmd has to be a table") return {} @@ -30,7 +30,7 @@ function M.get_os_command_output (cmd, cwd) return stdout, ret, stderr end -function M.split_string (str, delimiter) +function M.split_string(str, delimiter) local result = {} for match in (str .. delimiter):gmatch("(.-)" .. delimiter) do table.insert(result, match) @@ -38,7 +38,7 @@ function M.split_string (str, delimiter) return result end -function M.is_white_space (str) +function M.is_white_space(str) return str:gsub("%s", "") == "" end