Skip to content

Commit

Permalink
feat: add option to set nonumbers for popup windows (#385)
Browse files Browse the repository at this point in the history
  • Loading branch information
tvntvn13 authored Feb 25, 2024
1 parent 451197a commit ff458cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/chatgpt/code_edits.lua
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@ local setup_and_mount = vim.schedule_wrap(function(lines, output_lines, ...)
-- set input and output settings
for _, window in ipairs({ input_window, output_window }) do
vim.api.nvim_buf_set_option(window.bufnr, "filetype", filetype)
vim.api.nvim_win_set_option(window.winid, "number", true)
if Config.options.show_line_numbers ~= false then
vim.api.nvim_win_set_option(window.winid, "number", true)
end
end
end)

Expand Down
1 change: 1 addition & 0 deletions lua/chatgpt/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ function M.defaults()
api_key_cmd = nil,
yank_register = "+",
extra_curl_params = nil,
show_line_numbers = true,
edit_with_instructions = {
diff = false,
keymaps = {
Expand Down

0 comments on commit ff458cb

Please sign in to comment.