mirror of
https://github.com/VectorKappa/dotfiles.git
synced 2025-12-20 00:36:09 +01:00
1.1.0 Added dotfiles from my old PC
This commit is contained in:
16
IMPORTED_FROM_MANJARO/.config/micro/plugins/fzf/fzf.lua
Normal file
16
IMPORTED_FROM_MANJARO/.config/micro/plugins/fzf/fzf.lua
Normal file
@@ -0,0 +1,16 @@
|
||||
VERSION = "2.0.0"
|
||||
|
||||
MakeCommand("fzf", "fzf.fzf", 0)
|
||||
|
||||
function fzf()
|
||||
if CurView():CanClose() then
|
||||
RunTermEmulator("fzf", false, true, "fzf.handleFzfOutput")
|
||||
end
|
||||
end
|
||||
|
||||
function handleFzfOutput(output)
|
||||
local strings = import("strings")
|
||||
CurView():Open(strings.TrimSpace(output))
|
||||
end
|
||||
|
||||
AddRuntimeFile("fzf", "help", "help/fzf.md")
|
||||
Reference in New Issue
Block a user