ccc.nvim/plugin/ccc.lua
2024-04-07 00:05:51 +00:00

10 lines
364 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')." .. fm .. "('<f-args>')")
end
end
if executable("fnf") == 1 then
vim.cmd [[ command! Fnf :lua require('ccc').Fnf() ]]
end