1 2 3 4 5 6 7
local misc = {} function misc.dir_name(file_path) return vim.fn.fnamemodify(file_path, ":p:h") end return misc