diff --git a/.all-contributorsrc b/.all-contributorsrc
index c4d4d029..78d5ba16 100644
--- a/.all-contributorsrc
+++ b/.all-contributorsrc
@@ -389,6 +389,13 @@
"avatar_url": "https://avatars.githubusercontent.com/u/30581822?v=4",
"profile": "https://ouuan.moe/about",
"contributions": ["doc", "code"]
+ },
+ {
+ "login": "m4dd0c",
+ "name": "Manish Kumar",
+ "avatar_url": "https://avatars.githubusercontent.com/u/77256586?v=4",
+ "profile": "https://m4dd0c.netlify.app",
+ "contributions": ["code"]
}
],
"contributorsPerLine": 7,
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 1604446b..a90c2791 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -4,6 +4,6 @@ repos:
hooks:
- id: prettier
- repo: https://github.com/JohnnyMorganz/StyLua
- rev: v2.0.2
+ rev: v2.1.0
hooks:
- id: stylua-github
diff --git a/CHANGELOG.md b/CHANGELOG.md
index a5de69ab..fd6dc252 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,12 @@
# Changelog
+## [3.11.1](https://github.com/CopilotC-Nvim/CopilotChat.nvim/compare/v3.11.0...v3.11.1) (2025-04-21)
+
+
+### Bug Fixes
+
+* **validation:** Ensure If the erminal buffer is excluded from #buffers and #buffer ([bc644cd](https://github.com/CopilotC-Nvim/CopilotChat.nvim/commit/bc644cd97d272e6b46272cbb11147a5891fa08ff))
+
## [3.11.0](https://github.com/CopilotC-Nvim/CopilotChat.nvim/compare/v3.10.1...v3.11.0) (2025-04-09)
diff --git a/README.md b/README.md
index 422e634f..55d60a7f 100644
--- a/README.md
+++ b/README.md
@@ -883,6 +883,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
 Teo Ljungberg 💻 |
 Joe Price 💻 |
 Yufan You 📖 💻 |
+  Manish Kumar 💻 |
diff --git a/doc/CopilotChat.txt b/doc/CopilotChat.txt
index 13ce6f83..48d9bfd7 100644
--- a/doc/CopilotChat.txt
+++ b/doc/CopilotChat.txt
@@ -1,4 +1,4 @@
-*CopilotChat.txt* For NVIM v0.8.0 Last change: 2025 April 09
+*CopilotChat.txt* For NVIM v0.8.0 Last change: 2025 April 21
==============================================================================
Table of Contents *CopilotChat-table-of-contents*
@@ -882,7 +882,7 @@ See CONTRIBUTING.md for detailed guidelines.
Thanks goes to these wonderful people (emoji key
):
-gptlang💻 📖Dung Duc Huynh (Kaka)💻 📖Ahmed Haracic💻Trí Thiện Nguyễn💻He Zhizhou💻Guruprakash Rajakkannu💻kristofka💻PostCyberPunk📖Katsuhiko Nishimra💻Erno Hopearuoho💻Shaun Garwood💻neutrinoA4💻 📖Jack Muratore💻Adriel Velazquez💻 📖Tomas Slusny💻 📖Nisal📖Tobias Gårdhus📖Petr Dlouhý📖Dylan Madisetti💻Aaron Weisberg💻 📖Jose Tlacuilo💻 📖Kevin Traver💻 📖dTry💻Arata Furukawa💻Ling💻Ivan Frolov💻Folke Lemaitre💻 📖GitMurf💻Dmitrii Lipin💻jinzhongjia📖guill💻Sjon-Paul Brown💻Renzo Mondragón💻 📖fjchen7💻Radosław Woźniak💻JakubPecenka💻thomastthai📖Tomáš Janoušek💻Toddneal Stallworth📖Sergey Alexandrov💻Léopold Mebazaa💻JunKi Jin💻abdennourzahaf📖Josiah💻Tony Fischer💻 📖Kohei Wada💻Sebastian Yaghoubi📖johncming💻Rokas Brazdžionis💻Sola📖 💻Mani Chandra💻Nischal Basuti📖Teo Ljungberg💻Joe Price💻Yufan You📖 💻This project follows the all-contributors
+gptlang💻 📖Dung Duc Huynh (Kaka)💻 📖Ahmed Haracic💻Trí Thiện Nguyễn💻He Zhizhou💻Guruprakash Rajakkannu💻kristofka💻PostCyberPunk📖Katsuhiko Nishimra💻Erno Hopearuoho💻Shaun Garwood💻neutrinoA4💻 📖Jack Muratore💻Adriel Velazquez💻 📖Tomas Slusny💻 📖Nisal📖Tobias Gårdhus📖Petr Dlouhý📖Dylan Madisetti💻Aaron Weisberg💻 📖Jose Tlacuilo💻 📖Kevin Traver💻 📖dTry💻Arata Furukawa💻Ling💻Ivan Frolov💻Folke Lemaitre💻 📖GitMurf💻Dmitrii Lipin💻jinzhongjia📖guill💻Sjon-Paul Brown💻Renzo Mondragón💻 📖fjchen7💻Radosław Woźniak💻JakubPecenka💻thomastthai📖Tomáš Janoušek💻Toddneal Stallworth📖Sergey Alexandrov💻Léopold Mebazaa💻JunKi Jin💻abdennourzahaf📖Josiah💻Tony Fischer💻 📖Kohei Wada💻Sebastian Yaghoubi📖johncming💻Rokas Brazdžionis💻Sola📖 💻Mani Chandra💻Nischal Basuti📖Teo Ljungberg💻Joe Price💻Yufan You📖 💻Manish Kumar💻This project follows the all-contributors
specification.
Contributions of any kind are welcome!
diff --git a/lua/CopilotChat/utils.lua b/lua/CopilotChat/utils.lua
index a9201239..1be2504b 100644
--- a/lua/CopilotChat/utils.lua
+++ b/lua/CopilotChat/utils.lua
@@ -210,10 +210,15 @@ function M.kv_list(tbl)
end
--- Check if a buffer is valid
+--- Check if the buffer is not a terminal
---@param bufnr number? The buffer number
---@return boolean
function M.buf_valid(bufnr)
- return bufnr and vim.api.nvim_buf_is_valid(bufnr) and vim.api.nvim_buf_is_loaded(bufnr) or false
+ return bufnr
+ and vim.api.nvim_buf_is_valid(bufnr)
+ and vim.api.nvim_buf_is_loaded(bufnr)
+ and vim.bo[bufnr].buftype ~= 'terminal'
+ or false
end
--- Check if file paths are the same
diff --git a/version.txt b/version.txt
index afad8186..371cfe35 100644
--- a/version.txt
+++ b/version.txt
@@ -1 +1 @@
-3.11.0
+3.11.1