Skip to content

Commit ff458cb

Browse files
authored
feat: add option to set nonumbers for popup windows (#385)
1 parent 451197a commit ff458cb

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

lua/chatgpt/code_edits.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,9 @@ local setup_and_mount = vim.schedule_wrap(function(lines, output_lines, ...)
127127
-- set input and output settings
128128
for _, window in ipairs({ input_window, output_window }) do
129129
vim.api.nvim_buf_set_option(window.bufnr, "filetype", filetype)
130-
vim.api.nvim_win_set_option(window.winid, "number", true)
130+
if Config.options.show_line_numbers ~= false then
131+
vim.api.nvim_win_set_option(window.winid, "number", true)
132+
end
131133
end
132134
end)
133135

lua/chatgpt/config.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ function M.defaults()
1111
api_key_cmd = nil,
1212
yank_register = "+",
1313
extra_curl_params = nil,
14+
show_line_numbers = true,
1415
edit_with_instructions = {
1516
diff = false,
1617
keymaps = {

0 commit comments

Comments
 (0)