Skip to content

Commit

Permalink
Merge pull request #72 from cccheng/main
Browse files Browse the repository at this point in the history
fix: Set filetype to markdown for parrot responses
  • Loading branch information
frankroeder authored Oct 23, 2024
2 parents 39b6a91 + 119828b commit 6f75ae9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lua/parrot/chat_handler.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1395,8 +1395,7 @@ function ChatHandler:prompt(params, target, model_obj, prompt, template, reset_h
end,
})

local ft = target.filetype or filetype
vim.api.nvim_set_option_value("filetype", ft, { buf = buf })
vim.api.nvim_set_option_value("filetype", "markdown", { buf = buf })

handler = ResponseHandler:new(self.queries, buf, win, 0, false, "", cursor):create_handler()
end
Expand Down

0 comments on commit 6f75ae9

Please sign in to comment.