1
Fork 0

Navigate mini.files with enter!

This commit is contained in:
Matei Adriel 2023-09-22 19:37:24 +03:00
commit c8d7224dc9
No known key found for this signature in database
7 changed files with 48 additions and 13 deletions
dotfiles/neovim/lua/my/helpers

View file

@ -0,0 +1,13 @@
local M = {}
function M.split(text, sep)
---@diagnostic disable-next-line: redefined-local
local sep, fields = sep or ":", {}
local pattern = string.format("([^%s]+)", sep)
text:gsub(pattern, function(c)
fields[#fields + 1] = c
end)
return fields
end
return M