ccc.nvim/plugin/ccc.lua

11 lines
364 B
Lua
Raw Permalink Normal View History

2024-04-07 01:55:37 +02:00
local fileManagers = {"Ccc"}
local executable = vim.fn.executable
for _, fm in ipairs(fileManagers) do
if executable(vim.fn.tolower(fm)) == 1 then
2024-04-07 02:05:51 +02:00
vim.cmd("command! -nargs=? -complete=dir " .. fm .. " :lua require('ccc')." .. fm .. "('<f-args>')")
2024-04-07 01:55:37 +02:00
end
end
if executable("fnf") == 1 then
2024-04-07 02:05:51 +02:00
vim.cmd [[ command! Fnf :lua require('ccc').Fnf() ]]
2024-04-07 01:55:37 +02:00
end