@@ -39,7 +39,7 @@ local function get_linkables(bufnr, file, workspace)
39
39
if file then
40
40
lines = vim .fn .readfile (file :tostring (" /" ))
41
41
path = file
42
- file = " " .. file :relative_to (workspace ):remove_suffix (" .norg" )
42
+ file = " $/ " .. file :relative_to (workspace ):remove_suffix (" .norg" )
43
43
else
44
44
lines = vim .api .nvim_buf_get_lines (bufnr , 0 , - 1 , true )
45
45
end
@@ -115,16 +115,16 @@ return function(opts)
115
115
results = links ,
116
116
entry_maker = function (entry )
117
117
local displayer = entry_display .create ({
118
- separator = " | " ,
118
+ separator = " " ,
119
119
items = {
120
- { width = 100 },
120
+ { width = 55 },
121
121
{ remaining = true },
122
122
},
123
123
})
124
124
local function make_display (ent )
125
125
if entry .file then
126
126
return displayer ({
127
- { ent .file , " NeorgLinkFile" },
127
+ { ent .file , " NeorgLinkFile" },
128
128
{ ent .ordinal , " NeorgLinkText" },
129
129
})
130
130
else
@@ -148,7 +148,6 @@ return function(opts)
148
148
}
149
149
end ,
150
150
}),
151
- -- I couldn't get syntax highlight to work with this :(
152
151
previewer = conf .file_previewer (opts ),
153
152
sorter = conf .generic_sorter (opts ),
154
153
attach_mappings = function (prompt_bufnr )
@@ -159,7 +158,7 @@ return function(opts)
159
158
local inserted_file = (function ()
160
159
if entry .file then
161
160
-- entry.display = string.gsub(entry.display, entry.file..": ", "")
162
- return " :" .. string.gsub ( entry .file , " " , " $/ " ) .. " :"
161
+ return " :" .. entry .file .. " :"
163
162
else
164
163
return " "
165
164
end
0 commit comments