File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ return {
141141 vim .ui .select (
142142 vim .tbl_map (
143143 function (buf )
144- return { id = buf , name = vim .api .nvim_buf_get_name (buf ) }
144+ return { id = buf , name = vim .fn . fnamemodify ( vim . api .nvim_buf_get_name (buf ), ' :p:. ' ) }
145145 end ,
146146 vim .tbl_filter (function (buf )
147147 return vim .api .nvim_buf_is_loaded (buf ) and vim .fn .buflisted (buf ) == 1
Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ function M.file(filename)
116116
117117 return {
118118 content = table.concat (content , ' \n ' ),
119- filename = filename ,
119+ filename = vim . fn . fnamemodify ( filename , ' :p:. ' ) ,
120120 filetype = vim .filetype .match ({ filename = filename }),
121121 }
122122end
127127--- @return CopilotChat.copilot.embed ?
128128function M .outline (bufnr )
129129 local name = vim .api .nvim_buf_get_name (bufnr )
130+ name = vim .fn .fnamemodify (name , ' :p:.' )
130131 local ft = vim .bo [bufnr ].filetype
131132
132133 -- If buffer is not too big, just return the content
You can’t perform that action at this time.
0 commit comments