all repos

init.lua @ f287ea3b790173e49828959577f14fa524f9262a

my nvim config
4 files changed, 5 insertions(+), 79 deletions(-)
refactor: remove copilot
Author: Olexandr Smirnov olexsmir@gmail.com
Committed at: 2025-08-25 20:31:07 +0300
Parent: ddc9d3a
M lazy-lock.json

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

{ - "CopilotChat.nvim": { "branch": "main", "commit": "f22747ae5a4c88b4aa519e4638fe89b274ea28a4" }, "blink-copilot": { "branch": "main", "commit": "41e91a659bd9b8cba9ba2ea68a69b52ba5a9ebd8" }, "blink.cmp": { "branch": "main", "commit": "bae4bae0eedd1fa55f34b685862e94a222d5c6f8" }, - "copilot.lua": { "branch": "master", "commit": "3fd7b50810ae4cccf8b38e4c509b1608f141a9e9" }, + "copilot.lua": { "branch": "master", "commit": "f0c0d981de2737abc50bd7b5bb034ae440826827" }, "curl.nvim": { "branch": "main", "commit": "3ee14fbafc8169fc803e80562ce7ac5b4474bdff" }, "fidget.nvim": { "branch": "main", "commit": "b61e8af9b8b68ee0ec7da5fb7a8c203aae854f2e" }, "friendly-snippets": { "branch": "main", "commit": "572f5660cf05f8cd8834e096d7b4c921ba18e175" },

@@ -10,7 +9,6 @@ "gitsigns.nvim": { "branch": "main", "commit": "7010000889bfb6c26065e0b0f7f1e6aa9163edd9" },

"lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" }, "lazydev.nvim": { "branch": "main", "commit": "f59bd14a852ca43db38e3662395354cb2a9b13e0" }, "lualine.nvim": { "branch": "master", "commit": "b8c23159c0161f4b89196f74ee3a6d02cdc3a955" }, - "markview.nvim": { "branch": "main", "commit": "2d68c060ad4387d9895577af43c3ace41a80de5d" }, "mini.nvim": { "branch": "main", "commit": "94cae4660a8b2d95dbbd56e1fbc6fcfa2716d152" }, "neogit": { "branch": "master", "commit": "43fa47fb61773b0d90a78ebc2521ea8faaeebd86" }, "neotest": { "branch": "master", "commit": "35a59c1f59dbb954d92b74ab64a966a668cea495" },

@@ -22,8 +20,9 @@ "nvim-treesitter-context": { "branch": "master", "commit": "ed1cf48d5af252248c55f50b9427e8ce883a2c6b" },

"nvim-treesitter-endwise": { "branch": "master", "commit": "a61a9de7965324d4019fb1637b66bfacdcb01f51" }, "nvim-ts-context-commentstring": { "branch": "main", "commit": "1b212c2eee76d787bbea6aa5e92a2b534e7b4f8f" }, "oil.nvim": { "branch": "master", "commit": "975a77cce3c8cb742bc1b3629f4328f5ca977dad" }, - "plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" }, "schemastore.nvim": { "branch": "main", "commit": "e906ac3ed0bd273781759e7635b5b824393c925c" }, + "render-markdown.nvim": { "branch": "main", "commit": "3da7bb459f6cff03980dd1e106c46f3e62ff4d9f" }, + "plenary.nvim": { "branch": "master", "commit": "50012918b2fc8357b87cff2a7f7f0446e47da174" }, "snacks.nvim": { "branch": "main", "commit": "5eac729fa290248acfe10916d92a5ed5e5c0f9ed" }, "todo-comments.nvim": { "branch": "main", "commit": "ae0a2afb47cf7395dc400e5dc4e05274bf4fb9e0" }, "tokyonight.nvim": { "branch": "main", "commit": "b262293ef481b0d1f7a14c708ea7ca649672e200" },
M lua/plugins/completion.lua

@@ -13,10 +13,8 @@ keymap = {

preset = "enter", ["<C-u>"] = { "scroll_documentation_up", "fallback" }, ["<C-d>"] = { "scroll_documentation_down", "fallback" }, - -- prob should remove but i just got too used to accepting snippets this way ["<C-l>"] = { "snippet_forward", "accept", "fallback" }, }, - appearance = { nerd_font_variant = "mono" }, completion = { documentation = { auto_show = true,

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

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

@@ -34,16 +32,7 @@ name = "LazyDev",

module = "lazydev.integrations.blink", score_offset = 100, }, - copilot = { - name = "copilot", - module = "blink-copilot", - score_offset = 100, - async = true, - }, }, - }, - fuzzy = { -- :h blink-cmp-config-fuzzy - implementation = "prefer_rust_with_warning", }, }, config = function(_, opts)
D

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

-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", version = false }, + "nvim-lua/plenary.nvim", { "tpope/vim-surround", keys = { "c", "d", "y" } }, { "tpope/vim-repeat", event = "VeryLazy" }, { "tpope/vim-speeddating", keys = { "<C-a>", "<C-x>" } },