From 3c238894c5b6f15c5f27cea8bd3785eb0f1ebf0f Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 18 Sep 2022 11:39:25 +0200 Subject: add config --- lua/utility/misc.lua | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 lua/utility/misc.lua (limited to 'lua/utility/misc.lua') diff --git a/lua/utility/misc.lua b/lua/utility/misc.lua new file mode 100644 index 0000000..04ec1fc --- /dev/null +++ b/lua/utility/misc.lua @@ -0,0 +1,8 @@ +function GetCurrentFile() + return vim.fn.expand("%") +end + +function Dirname(file_path) + return vim.fn.fnamemodify(file_path, ":p:h") +end + -- cgit v1.2.3-18-g5258