Update Lumentis links
This commit is contained in:
parent
caef18ce13
commit
fd3ea440c5
|
@ -6,7 +6,7 @@ local conf = require("telescope.config").values
|
||||||
|
|
||||||
local wiki_utils = {}
|
local wiki_utils = {}
|
||||||
|
|
||||||
local root_path = '/home/user/Workspace/DnD/Lumentis Campaign Setting'
|
local root_path = '/home/server/Workspace/DnD/Lumentis Campaign Setting'
|
||||||
|
|
||||||
local function get_title(file)
|
local function get_title(file)
|
||||||
for line in io.lines(file) do
|
for line in io.lines(file) do
|
||||||
|
@ -30,7 +30,6 @@ local choose_link = function(opts, titles, links)
|
||||||
actions.select_default:replace(function()
|
actions.select_default:replace(function()
|
||||||
actions.close(prompt_bufnr)
|
actions.close(prompt_bufnr)
|
||||||
local selection = action_state.get_selected_entry()
|
local selection = action_state.get_selected_entry()
|
||||||
-- print(vim.inspect(selection['index']))
|
|
||||||
vim.api.nvim_put({ links[selection['index']] }, "", false, true)
|
vim.api.nvim_put({ links[selection['index']] }, "", false, true)
|
||||||
end)
|
end)
|
||||||
return true
|
return true
|
||||||
|
|
Loading…
Reference in New Issue