Skip to content

Commit 3e3fd33

Browse files
committed
Add helper functions
1 parent e6b6196 commit 3e3fd33

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lua/iron/core.lua

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@ local nvim = vim.api
33
local fts = require('iron.fts')
44
local core = {}
55

6+
local get_from_memory = function(config, memory, ft)
7+
return config.memory_management.get(memory, ft)
8+
end
9+
10+
local set_on_memory = function(config, memory, ft, fn)
11+
return config.memory_management.set(memory, ft, fn)
12+
end
13+
614
core.get_preferred_repl = function(config, ft)
715
local repl = fts[ft]
816
local repl_def = config.preferred[ft]

0 commit comments

Comments
 (0)