Navigate mini.files with enter!
This commit is contained in:
parent
c21bf836a8
commit
c8d7224dc9
7 changed files with 48 additions and 13 deletions
dotfiles/neovim/lua/my
13
dotfiles/neovim/lua/my/helpers/string.lua
Normal file
13
dotfiles/neovim/lua/my/helpers/string.lua
Normal 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
|
|
@ -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" },
|
||||
|
|
|
@ -15,7 +15,9 @@ function M.config()
|
|||
windows = {
|
||||
preview = false,
|
||||
},
|
||||
mappings = {},
|
||||
mappings = {
|
||||
go_in_plus = "<cr>",
|
||||
},
|
||||
})
|
||||
|
||||
K.nmap("<C-S-F>", function()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue