ccc.nvim/plugin/ccc.lua

10 lines
374 B
Lua

local fileManagers = {"Ccc"}
local executable = vim.fn.executable
for _, fm in ipairs(fileManagers) do
if executable(vim.fn.tolower(fm)) == 1 then
vim.cmd("command! -nargs=? -complete=dir " .. fm .. " :lua require('ccc.nvim')." .. fm .. "('<f-args>')")
end
end
if executable("fnf") == 1 then
vim.cmd [[ command! Fnf :lua require('ccc.nvim').Fnf() ]]
end