-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathinit.lua
More file actions
53 lines (53 loc) · 1.43 KB
/
init.lua
File metadata and controls
53 lines (53 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
-- local M = {}
--
-- local settings = require('pytrize.settings').settings
-- local notify = require('pytrize.notify')
--
-- local function get_nui_handler()
-- return require('pytrize.input.nui').load()
-- end
--
-- local function get_telescope_handler()
-- return require('pytrize.input.telescope').load()
-- end
--
-- local function get_builtin_handler()
-- return require('pytrize.input.builtin').load()
-- end
--
-- local handlers = {
-- 'telescope',
-- 'nui',
-- 'builtin',
-- }
--
-- local handler_getters = {
-- telescope = get_telescope_handler,
-- nui = get_nui_handler,
-- builtin = get_builtin_handler,
-- }
--
-- local function get_input_handler()
-- if handler_getters[settings.preferred_input] == nil then
-- notify.warn(string.format('unknown input choice "%s"', settings.preferred_input))
-- return
-- end
-- local handler = handler_getters[settings.preferred_input]()
-- if handler ~= nil then
-- return handler
-- end
-- for _, name in ipairs(handlers) do
-- handler = handler_getters[name]()
-- if handler ~= nil then
-- return handler
-- end
-- end
-- end
--
-- M.prompt_files = function(files, callback)
-- local handler = get_input_handler()
-- local prompt = 'Multiple files found for the nodeid under cursor, pick the correct one:'
-- handler.prompt_files(prompt, files, callback)
-- end
--
-- return M