Page MenuHomePhorge

ivy.lua
No OneTemporary

local controller = require "ivy.controller"
-- Put the controller in to the vim global so we can access it in mappings
-- better without requires. You can call controller commands like `vim.ivy.xxx`.
-- luacheck: ignore
vim.ivy = controller
vim.paste = (function(overridden)
return function(lines, phase)
local file_type = vim.api.nvim_buf_get_option(0, "filetype")
if file_type == "ivy" then
vim.ivy.paste()
else
overridden(lines, phase)
end
end
end)(vim.paste)
vim.cmd "highlight IvyMatch cterm=bold gui=bold"

File Metadata

Mime Type
text/plain
Expires
Apr 6 2026, 6:03 PM (5 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
10529
Default Alt Text
ivy.lua (547 B)

Event Timeline