all repos

init.lua @ 9066d6399b0f870f90745b0668d43e2472b6a2dc

my nvim config
4 files changed, 75 insertions(+), 4 deletions(-)
Revert "refactor: remove copilot stuff"

This reverts commit 7c68a2b09d62330f84d527c63895380567845f5b.
Author: Olexandr Smirnov olexsmir@gmail.com
Committed at: 2025-08-05 18:41:09 +0300
Parent: f1bf648
M lazy-lock.json

@@ -1,6 +1,9 @@

{ + "CopilotChat.nvim": { "branch": "main", "commit": "20b493ea8dee0589703e7e9fe24019f7d2649be1" }, + "blink-copilot": { "branch": "main", "commit": "41e91a659bd9b8cba9ba2ea68a69b52ba5a9ebd8" }, "blink.cmp": { "branch": "main", "commit": "bae4bae0eedd1fa55f34b685862e94a222d5c6f8" }, "checkmate.nvim": { "branch": "main", "commit": "d76f8aef0c48bfa89b84d9a40d99da41523acbab" }, + "copilot.lua": { "branch": "master", "commit": "0f2fd3829dd27d682e46c244cf48d9715726f612" }, "curl.nvim": { "branch": "main", "commit": "b3becc4286eeb1bf363696e2551e6d860c78de3a" }, "fidget.nvim": { "branch": "main", "commit": "b61e8af9b8b68ee0ec7da5fb7a8c203aae854f2e" }, "friendly-snippets": { "branch": "main", "commit": "572f5660cf05f8cd8834e096d7b4c921ba18e175" },

@@ -19,7 +22,7 @@ "nvim-treesitter-context": { "branch": "master", "commit": "ed1cf48d5af252248c55f50b9427e8ce883a2c6b" },

"nvim-treesitter-endwise": { "branch": "master", "commit": "d6cbb83307d516ec076d17c9a33d704ef626ee8c" }, "nvim-ts-context-commentstring": { "branch": "main", "commit": "1b212c2eee76d787bbea6aa5e92a2b534e7b4f8f" }, "oil.nvim": { "branch": "master", "commit": "975a77cce3c8cb742bc1b3629f4328f5ca977dad" }, - "plenary.nvim": { "branch": "master", "commit": "50012918b2fc8357b87cff2a7f7f0446e47da174" }, + "plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" }, "schemastore.nvim": { "branch": "main", "commit": "241f1265614a90fe0d7fc5c7b06197f542b5c151" }, "snacks.nvim": { "branch": "main", "commit": "5eac729fa290248acfe10916d92a5ed5e5c0f9ed" }, "todo-comments.nvim": { "branch": "main", "commit": "ae0a2afb47cf7395dc400e5dc4e05274bf4fb9e0" },
M lua/plugins/completion.lua

@@ -1,8 +1,8 @@

----@return LazySpec return { "saghen/blink.cmp", dependencies = { "rafamadriz/friendly-snippets", + { "fang2hou/blink-copilot", dependencies = "copilot.lua" }, }, version = "1.*", event = "InsertEnter",

@@ -24,7 +24,7 @@ auto_show_delay_ms = 300,

}, }, sources = { - default = { "lsp", "path", "snippets", "buffer" }, + default = { "copilot", "lsp", "path", "snippets", "buffer" }, per_filetype = { lua = { inherit_defaults = true, "lazydev" }, },

@@ -33,6 +33,12 @@ lazydev = {

name = "LazyDev", module = "lazydev.integrations.blink", score_offset = 100, + }, + copilot = { + name = "copilot", + module = "blink-copilot", + score_offset = 100, + async = true, }, }, },
A lua/plugins/copilot.lua

@@ -0,0 +1,62 @@

+local enabled = true + +---@type LazySpec +return { + { + "zbirenbaum/copilot.lua", + enabled = enabled, + cmd = "Copilot", + build = ":Copilot auth", + opts = { + suggestion = { enabled = false }, + panel = { + enabled = false, + auto_refresh = true, + keymap = { refresh = "<C-r>" }, + layout = { + position = "right", + ratio = 0.3, + }, + }, + filetypes = { + yaml = true, + TelescopePrompt = false, + org = false, + ledger = false, + todotxt = false, + ["."] = false, + }, + }, + }, + + { + "CopilotC-Nvim/CopilotChat.nvim", + dependencies = { "copilot.lua" }, + enabled = enabled, + -- stylua: ignore + cmd = { "CopilotChat", "CopilotChatFix", "CopilotChatTests", "CopilotChatExplain", "CopilotChatDocs"}, + build = "make tiktoken", + keys = { + { "<leader>C", ":CopilotChat ", mode = { "n", "v" } }, + }, + ---@module "CopilotChat" + ---@type CopilotChat.config.Config + ---@diagnostic disable: missing-fields + opts = { + auto_insert_mode = true, + mappings = { + reset = { + insert = "<C-r>", + normal = "<C-r>", + }, + submit_prompt = { insert = "<C-CR>" }, + show_help = { normal = "?" }, + }, + headers = { + user = "👤 You: ", + assistant = "🤖 Copilot: ", + tool = "🔧 Tool: ", + }, + }, + }, +}
M lua/plugins/core.lua

@@ -1,6 +1,6 @@

---@type LazySpec return { - "nvim-lua/plenary.nvim", + { "nvim-lua/plenary.nvim", version = false }, { "tpope/vim-surround", keys = { "c", "d", "y" } }, { "tpope/vim-repeat", event = "VeryLazy" }, { "tpope/vim-speeddating", keys = { "<C-a>", "<C-x>" } },