1
Fork 0

Navigate mini.files with enter!

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

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

View file

@ -1,6 +1,6 @@
local env = require("my.helpers.env")
local header = [[
local header_string = [[
@ -9,6 +9,8 @@ local header = [[
]]
local header = require("my.helpers.string").split(header_string, "\n")
local M = {
"goolord/alpha-nvim",
dependencies = { "nvim-tree/nvim-web-devicons" },

View file

@ -15,7 +15,9 @@ function M.config()
windows = {
preview = false,
},
mappings = {},
mappings = {
go_in_plus = "<cr>",
},
})
K.nmap("<C-S-F>", function()