ccc.nvim/plugin/ccc.lua

11 lines
372 B
Lua
Raw 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
vim.cmd("command! -nargs=? -complete=dir " .. fm .. " :lua require('fm-nvim')." .. fm .. "('<f-args>')")
end
end
if executable("fnf") == 1 then
vim.cmd [[ command! Fnf :lua require('fm-nvim').Fnf() ]]
end