Skip to content

Commit

Permalink
fix: use relative path (yetone#875)
Browse files Browse the repository at this point in the history
  • Loading branch information
yetone authored Nov 19, 2024
1 parent d17905a commit 5dd4254
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/avante/sidebar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1345,7 +1345,7 @@ function Sidebar:create_input(opts)
local filetype = api.nvim_get_option_value("filetype", { buf = self.code.bufnr })

local selected_file = {
filepath = api.nvim_buf_get_name(self.code.bufnr),
filepath = Utils.relative_path(api.nvim_buf_get_name(self.code.bufnr)),
}

local selected_code = nil
Expand Down

0 comments on commit 5dd4254

Please sign in to comment.