summaryrefslogtreecommitdiff
path: root/lua/utility/misc.lua
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2024-11-10 20:02:23 +0100
committerHampusM <hampus@hampusmat.com>2024-11-10 20:02:23 +0100
commitbb05c664d78796b7d26969ccfd3bea6cc9131b03 (patch)
tree996cdc0cc306f781ae03c2b5785ad546ecb53ee8 /lua/utility/misc.lua
parent4a32ba0d4dbb63fe9332bd2666e429e8d84dbfa1 (diff)
add keymap to open telescope in current buffer's dir
Diffstat (limited to 'lua/utility/misc.lua')
-rw-r--r--lua/utility/misc.lua7
1 files changed, 3 insertions, 4 deletions
diff --git a/lua/utility/misc.lua b/lua/utility/misc.lua
index 04ec1fc..5e0b08c 100644
--- a/lua/utility/misc.lua
+++ b/lua/utility/misc.lua
@@ -1,8 +1,7 @@
-function GetCurrentFile()
- return vim.fn.expand("%")
-end
+local misc = {}
-function Dirname(file_path)
+function misc.dir_name(file_path)
return vim.fn.fnamemodify(file_path, ":p:h")
end
+return misc