diff --git a/.all-contributorsrc b/.all-contributorsrc
index a4cd5633..db53eab1 100644
--- a/.all-contributorsrc
+++ b/.all-contributorsrc
@@ -403,6 +403,13 @@
"avatar_url": "https://avatars.githubusercontent.com/u/6123841?v=4",
"profile": "https://www.azdanov.dev",
"contributions": ["doc", "code"]
+ },
+ {
+ "login": "fredrikaverpil",
+ "name": "Fredrik Averpil",
+ "avatar_url": "https://avatars.githubusercontent.com/u/994357?v=4",
+ "profile": "http://fredrikaverpil.github.io",
+ "contributions": ["code"]
}
],
"contributorsPerLine": 7,
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 797eb8d3..878ad67b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,12 @@
# Changelog
+## [3.12.1](https://github.com/CopilotC-Nvim/CopilotChat.nvim/compare/v3.12.0...v3.12.1) (2025-06-16)
+
+
+### Bug Fixes
+
+* move plenary import into function ([#1162](https://github.com/CopilotC-Nvim/CopilotChat.nvim/issues/1162)) ([5229bc4](https://github.com/CopilotC-Nvim/CopilotChat.nvim/commit/5229bc48d655247449652d37ba525429ecfcce99))
+
## [3.12.0](https://github.com/CopilotC-Nvim/CopilotChat.nvim/compare/v3.11.1...v3.12.0) (2025-05-09)
diff --git a/README.md b/README.md
index d66bbb02..0e9b0b07 100644
--- a/README.md
+++ b/README.md
@@ -887,6 +887,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
 Anton Ždanov 📖 💻 |
+  Fredrik Averpil 💻 |
diff --git a/doc/CopilotChat.txt b/doc/CopilotChat.txt
index 65910dc0..3e75bc33 100644
--- a/doc/CopilotChat.txt
+++ b/doc/CopilotChat.txt
@@ -1,4 +1,4 @@
-*CopilotChat.txt* For NVIM v0.8.0 Last change: 2025 May 09
+*CopilotChat.txt* For NVIM v0.8.0 Last change: 2025 June 16
==============================================================================
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📖 💻Manish Kumar💻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💻Anton Ždanov📖 💻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 1be2504b..7cb28979 100644
--- a/lua/CopilotChat/utils.lua
+++ b/lua/CopilotChat/utils.lua
@@ -1,7 +1,6 @@
local async = require('plenary.async')
local curl = require('plenary.curl')
local scandir = require('plenary.scandir')
-local filetype = require('plenary.filetype')
local M = {}
M.timers = {}
@@ -236,6 +235,7 @@ end
---@param filename string The file name
---@return string|nil
function M.filetype(filename)
+ local filetype = require('plenary.filetype')
local ft = filetype.detect(filename, {
fs_access = false,
})
diff --git a/version.txt b/version.txt
index 92536a9e..171a6a93 100644
--- a/version.txt
+++ b/version.txt
@@ -1 +1 @@
-3.12.0
+3.12.1