From f1ad1dbe1194681c1aa20493b5555bb161a047c9 Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Wed, 27 Aug 2025 23:30:29 +0900 Subject: modified plugins/ai.lua, modified plugins/python.lua --- .../TheSiahxyz/lua/TheSiahxyz/plugins/ai.lua | 469 ++++++++++++--------- .../TheSiahxyz/lua/TheSiahxyz/plugins/python.lua | 1 - 2 files changed, 273 insertions(+), 197 deletions(-) (limited to 'mac') diff --git a/mac/.config/TheSiahxyz/lua/TheSiahxyz/plugins/ai.lua b/mac/.config/TheSiahxyz/lua/TheSiahxyz/plugins/ai.lua index baab1f0..227d4f4 100644 --- a/mac/.config/TheSiahxyz/lua/TheSiahxyz/plugins/ai.lua +++ b/mac/.config/TheSiahxyz/lua/TheSiahxyz/plugins/ai.lua @@ -1,206 +1,283 @@ return { { - "robitx/gp.nvim", - init = function() - local wk = require("which-key") - wk.add({ - mode = { "n", "v", "x" }, - { "G", group = "GPT" }, - { "Gg", group = "Gp" }, - { "GW", group = "Whisper" }, - }) - end, - config = function() - local function keymapOptions(desc) - return { - noremap = true, - silent = true, - nowait = true, - desc = desc, - } - end - - local conf = { - -- For customization, refer to Install > Configuration in the Documentation/Readme - -- openai_api_key = { "pass", "show", "api/chatGPT/nvim" }, - openai_api_key = { "pass", "show", "api/chatGPT/nvim" }, - providers = { - openai = { - disable = false, - endpoint = "https://api.openai.com/v1/chat/completions", - -- secret = { "pass", "show", "api/chatGPT/nvim" }, + "yetone/avante.nvim", + -- if you want to build from source then do `make BUILD_FROM_SOURCE=true` + -- ⚠️ must add this setting! ! ! + build = vim.fn.has("win32") ~= 0 + and "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false" + or "make", + event = "VeryLazy", + version = false, -- Never set this value to "*"! Never! + ---@module 'avante' + ---@type avante.Config + opts = { + -- add any opts here + -- this file can contain specific instructions for your project + instructions_file = "avante.md", + -- for example + provider = "claude", + providers = { + claude = { + endpoint = "https://api.anthropic.com", + model = "claude-sonnet-4-20250514", + timeout = 30000, -- Timeout in milliseconds + extra_request_body = { + temperature = 0.75, + max_tokens = 20480, }, }, - hooks = { - -- GpInspectPlugin provides a detailed inspection of the plugin state - InspectPlugin = function(plugin, params) - local bufnr = vim.api.nvim_create_buf(false, true) - local copy = vim.deepcopy(plugin) - local key = copy.config.openai_api_key or "" - copy.config.openai_api_key = key:sub(1, 3) .. string.rep("*", #key - 6) .. key:sub(-3) - local plugin_info = string.format("Plugin structure:\n%s", vim.inspect(copy)) - local params_info = string.format("Command params:\n%s", vim.inspect(params)) - local lines = vim.split(plugin_info .. "\n" .. params_info, "\n") - vim.api.nvim_buf_set_lines(bufnr, 0, -1, false, lines) - vim.api.nvim_win_set_buf(0, bufnr) - end, - - -- GpInspectLog for checking the log file - InspectLog = function(plugin, params) - local log_file = plugin.config.log_file - local buffer = plugin.helpers.get_buffer(log_file) - if not buffer then - vim.cmd("e " .. log_file) - else - vim.cmd("buffer " .. buffer) - end - end, - - -- GpImplement rewrites the provided selection/range based on comments in it - Implement = function(gp, params) - local template = "Having following from {{filename}}:\n\n" - .. "```{{filetype}}\n{{selection}}\n```\n\n" - .. "Please rewrite this according to the contained instructions." - .. "\n\nRespond exclusively with the snippet that should replace the selection above." - - local agent = gp.get_command_agent() - gp.logger.info("Implementing selection with agent: " .. agent.name) - - gp.Prompt( - params, - gp.Target.rewrite, - agent, - template, - nil, -- command will run directly without any prompting for user input - nil -- no predefined instructions (e.g. speech-to-text from Whisper) - ) - end, - - -- your own functions can go here, see README for more examples like - -- :GpExplain, :GpUnitTests.., :GpTranslator etc. - - -- example of making :%GpChatNew a dedicated command which - -- opens new chat with the entire current buffer as a context - BufferChatNew = function(gp, _) - -- call GpChatNew command in range mode on whole buffer - vim.api.nvim_command("%" .. gp.config.cmd_prefix .. "ChatNew") - end, - - -- example of adding command which opens new chat dedicated for translation - Translator = function(gp, params) - local chat_system_prompt = "You are a Translator, please translate between English and Korean." - gp.cmd.ChatNew(params, chat_system_prompt) - - -- -- you can also create a chat with a specific fixed agent like this: - -- local agent = gp.get_chat_agent("ChatGPT4o") - -- gp.cmd.ChatNew(params, chat_system_prompt, agent) - end, - - -- example of adding command which writes unit tests for the selected code - UnitTests = function(gp, params) - local template = "I have the following code from {{filename}}:\n\n" - .. "```{{filetype}}\n{{selection}}\n```\n\n" - .. "Please respond by writing table driven unit tests for the code above." - local agent = gp.get_command_agent() - gp.Prompt(params, gp.Target.enew, agent, template) - end, - - -- example of adding command which explains the selected code - Explain = function(gp, params) - local template = "I have the following code from {{filename}}:\n\n" - .. "```{{filetype}}\n{{selection}}\n```\n\n" - .. "Please respond by explaining the code above." - local agent = gp.get_chat_agent() - gp.Prompt(params, gp.Target.popup, agent, template) - end, - - -- example of usig enew as a function specifying type for the new buffer - CodeReview = function(gp, params) - local template = "I have the following code from {{filename}}:\n\n" - .. "```{{filetype}}\n{{selection}}\n```\n\n" - .. "Please analyze for code smells and suggest improvements." - local agent = gp.get_chat_agent() - gp.Prompt(params, gp.Target.enew("markdown"), agent, template) - end, + moonshot = { + endpoint = "https://api.moonshot.ai/v1", + model = "kimi-k2-0711-preview", + timeout = 30000, -- Timeout in milliseconds + extra_request_body = { + temperature = 0.75, + max_tokens = 32768, + }, + }, + }, + }, + dependencies = { + "nvim-lua/plenary.nvim", + "MunifTanjim/nui.nvim", + --- The below dependencies are optional, + "echasnovski/mini.pick", -- for file_selector provider mini.pick + "nvim-telescope/telescope.nvim", -- for file_selector provider telescope + "hrsh7th/nvim-cmp", -- autocompletion for avante commands and mentions + "ibhagwan/fzf-lua", -- for file_selector provider fzf + "stevearc/dressing.nvim", -- for input provider dressing + "folke/snacks.nvim", -- for input provider snacks + "nvim-tree/nvim-web-devicons", -- or echasnovski/mini.icons + "zbirenbaum/copilot.lua", -- for providers='copilot' + { + -- support for image pasting + "HakonHarnes/img-clip.nvim", + event = "VeryLazy", + opts = { + -- recommended settings + default = { + embed_image_as_base64 = false, + prompt_for_file_name = false, + drag_and_drop = { + insert_mode = true, + }, + -- required for Windows users + use_absolute_path = true, + }, + }, + }, + { + -- Make sure to set this up properly if you have lazy=true + "MeanderingProgrammer/render-markdown.nvim", + opts = { + file_types = { "markdown", "Avante" }, }, - } - require("gp").setup(conf) - - -- Setup shortcuts here (see Usage > Shortcuts in the Documentation/Readme) - vim.keymap.set("n", "Gc", "GpChatNew", keymapOptions("New chat")) - vim.keymap.set("n", "Gb", "GpBufferChatNew", keymapOptions("New buffer chat")) - vim.keymap.set("n", "Gt", "GpChatToggle", keymapOptions("Toggle chat")) - vim.keymap.set("n", "Gf", "GpChatFinder", keymapOptions("Chat finder")) - - vim.keymap.set("v", "Gc", ":'<,'>GpChatNew", keymapOptions("Chat new")) - vim.keymap.set("v", "Gb", ":'<,'>GpBufferChatNew", keymapOptions("Buffer chat new")) - vim.keymap.set("v", "Gp", ":'<,'>GpChatPaste", keymapOptions("Chat paste")) - vim.keymap.set("v", "Gt", ":'<,'>GpChatToggle", keymapOptions("Toggle chat")) - - vim.keymap.set("n", "Gh", "gpchatnew split", keymapOptions("New chat split")) - vim.keymap.set("n", "Gv", "gpchatnew vsplit", keymapOptions("New chat vsplit")) - vim.keymap.set("n", "Gn", "gpchatnew tabnew", keymapOptions("New chat tabnew")) - - vim.keymap.set("v", "Gh", ":'<,'>GpChatNew split", keymapOptions("Chat new split")) - vim.keymap.set("v", "Gv", ":'<,'>GpChatNew vsplit", keymapOptions("Chat new vsplit")) - vim.keymap.set("v", "Gn", ":'<,'>GpChatNew tabnew", keymapOptions("Chat new tabnew")) - - -- Prompt commands - vim.keymap.set("n", "Gw", "GpRewrite", keymapOptions("Inline rewrite")) - vim.keymap.set("n", "Gr", "GpCodeReview", keymapOptions("Code review")) - vim.keymap.set("n", "G]", "GpAppend", keymapOptions("Append (after)")) - vim.keymap.set("n", "G[", "GpPrepend", keymapOptions("Prepend (before)")) - - vim.keymap.set("v", "Gw", ":'<,'>GpRewrite", keymapOptions("Rewrite")) - vim.keymap.set("v", "Gr", ":'<,'>GpCodeReview", keymapOptions("Code review")) - vim.keymap.set("v", "G]", ":'<,'>GpAppend", keymapOptions("Append (after)")) - vim.keymap.set("v", "G[", ":'<,'>GpPrepend", keymapOptions("Prepend (before)")) - vim.keymap.set("v", "Gi", ":'<,'>GpImplement", keymapOptions("Implement selection")) - - vim.keymap.set("n", "Ggp", "GpPopup", keymapOptions("Popup")) - vim.keymap.set("n", "Gge", "GpEnew", keymapOptions("GpEnew")) - vim.keymap.set("n", "Ggc", "GpNew", keymapOptions("GpNew")) - vim.keymap.set("n", "Ggv", "GpVnew", keymapOptions("GpVnew")) - vim.keymap.set("n", "Ggn", "GpTabnew", keymapOptions("GpTabnew")) - - vim.keymap.set("v", "Ggp", ":'<,'>GpPopup", keymapOptions("Popup")) - vim.keymap.set("v", "Gge", ":'<,'>GpEnew", keymapOptions("GpEnew")) - vim.keymap.set("v", "Ggc", ":'<,'>GpNew", keymapOptions("GpNew")) - vim.keymap.set("v", "Ggv", ":'<,'>GpVnew", keymapOptions("GpVnew")) - vim.keymap.set("v", "Ggn", ":'<,'>GpTabnew", keymapOptions("GpTabnew")) - - vim.keymap.set("n", "Gx", "GpContext", keymapOptions("Toggle context")) - vim.keymap.set("v", "Gx", ":'<,'>GpContext", keymapOptions("Toggle context")) - - vim.keymap.set({ "n", "v", "x" }, "Ggs", "GpStop", keymapOptions("Stop")) - vim.keymap.set({ "n", "v", "x" }, "Gg]", "GpNextAgent", keymapOptions("Next agent")) - - -- optional Whisper commands with prefix w - vim.keymap.set("n", "GWw", "GpWhisper", keymapOptions("Whisper")) - vim.keymap.set("v", "GWw", ":'<,'>GpWhisper", keymapOptions("Whisper")) - - vim.keymap.set("n", "GWr", "GpWhisperRewrite", keymapOptions("Inline rewrite")) - vim.keymap.set("n", "GW]", "GpWhisperAppend", keymapOptions("Append (after)")) - vim.keymap.set("n", "GW[", "GpWhisperPrepend", keymapOptions("Prepend (before) ")) - - vim.keymap.set("v", "GWr", ":'<,'>GpWhisperRewrite", keymapOptions("Rewrite")) - vim.keymap.set("v", "GW]", ":'<,'>GpWhisperAppend", keymapOptions("Append (after)")) - vim.keymap.set("v", "GW[", ":'<,'>GpWhisperPrepend", keymapOptions("Prepend (before)")) - - vim.keymap.set("n", "GWp", "GpWhisperPopup", keymapOptions("Popup")) - vim.keymap.set("n", "GWe", "GpWhisperEnew", keymapOptions("Enew")) - vim.keymap.set("n", "GWc", "GpWhisperNew", keymapOptions("New")) - vim.keymap.set("n", "GWv", "GpWhisperVnew", keymapOptions("Vnew")) - vim.keymap.set("n", "GWn", "GpWhisperTabnew", keymapOptions("Tabnew")) - - vim.keymap.set("v", "GWp", ":'<,'>GpWhisperPopup", keymapOptions("Popup")) - vim.keymap.set("v", "GWe", ":'<,'>GpWhisperEnew", keymapOptions("Enew")) - vim.keymap.set("v", "GWc", ":'<,'>GpWhisperNew", keymapOptions("New")) - vim.keymap.set("v", "GWv", ":'<,'>GpWhisperVnew", keymapOptions("Vnew")) - vim.keymap.set("v", "GWn", ":'<,'>GpWhisperTabnew", keymapOptions("Tabnew")) - end, + ft = { "markdown", "Avante" }, + }, + }, }, -- { + -- "robitx/gp.nvim", + -- init = function() + -- local wk = require("which-key") + -- wk.add({ + -- mode = { "n", "v", "x" }, + -- { "G", group = "GPT" }, + -- { "Gg", group = "Gp" }, + -- { "GW", group = "Whisper" }, + -- }) + -- end, + -- config = function() + -- local function keymapOptions(desc) + -- return { + -- noremap = true, + -- silent = true, + -- nowait = true, + -- desc = desc, + -- } + -- end + -- + -- local conf = { + -- -- For customization, refer to Install > Configuration in the Documentation/Readme + -- -- openai_api_key = { "pass", "show", "api/chatGPT/nvim" }, + -- openai_api_key = { "pass", "show", "api/chatGPT/nvim" }, + -- providers = { + -- openai = { + -- disable = false, + -- endpoint = "https://api.openai.com/v1/chat/completions", + -- -- secret = { "pass", "show", "api/chatGPT/nvim" }, + -- }, + -- }, + -- hooks = { + -- -- GpInspectPlugin provides a detailed inspection of the plugin state + -- InspectPlugin = function(plugin, params) + -- local bufnr = vim.api.nvim_create_buf(false, true) + -- local copy = vim.deepcopy(plugin) + -- local key = copy.config.openai_api_key or "" + -- copy.config.openai_api_key = key:sub(1, 3) .. string.rep("*", #key - 6) .. key:sub(-3) + -- local plugin_info = string.format("Plugin structure:\n%s", vim.inspect(copy)) + -- local params_info = string.format("Command params:\n%s", vim.inspect(params)) + -- local lines = vim.split(plugin_info .. "\n" .. params_info, "\n") + -- vim.api.nvim_buf_set_lines(bufnr, 0, -1, false, lines) + -- vim.api.nvim_win_set_buf(0, bufnr) + -- end, + -- + -- -- GpInspectLog for checking the log file + -- InspectLog = function(plugin, params) + -- local log_file = plugin.config.log_file + -- local buffer = plugin.helpers.get_buffer(log_file) + -- if not buffer then + -- vim.cmd("e " .. log_file) + -- else + -- vim.cmd("buffer " .. buffer) + -- end + -- end, + -- + -- -- GpImplement rewrites the provided selection/range based on comments in it + -- Implement = function(gp, params) + -- local template = "Having following from {{filename}}:\n\n" + -- .. "```{{filetype}}\n{{selection}}\n```\n\n" + -- .. "Please rewrite this according to the contained instructions." + -- .. "\n\nRespond exclusively with the snippet that should replace the selection above." + -- + -- local agent = gp.get_command_agent() + -- gp.logger.info("Implementing selection with agent: " .. agent.name) + -- + -- gp.Prompt( + -- params, + -- gp.Target.rewrite, + -- agent, + -- template, + -- nil, -- command will run directly without any prompting for user input + -- nil -- no predefined instructions (e.g. speech-to-text from Whisper) + -- ) + -- end, + -- + -- -- your own functions can go here, see README for more examples like + -- -- :GpExplain, :GpUnitTests.., :GpTranslator etc. + -- + -- -- example of making :%GpChatNew a dedicated command which + -- -- opens new chat with the entire current buffer as a context + -- BufferChatNew = function(gp, _) + -- -- call GpChatNew command in range mode on whole buffer + -- vim.api.nvim_command("%" .. gp.config.cmd_prefix .. "ChatNew") + -- end, + -- + -- -- example of adding command which opens new chat dedicated for translation + -- Translator = function(gp, params) + -- local chat_system_prompt = "You are a Translator, please translate between English and Korean." + -- gp.cmd.ChatNew(params, chat_system_prompt) + -- + -- -- -- you can also create a chat with a specific fixed agent like this: + -- -- local agent = gp.get_chat_agent("ChatGPT4o") + -- -- gp.cmd.ChatNew(params, chat_system_prompt, agent) + -- end, + -- + -- -- example of adding command which writes unit tests for the selected code + -- UnitTests = function(gp, params) + -- local template = "I have the following code from {{filename}}:\n\n" + -- .. "```{{filetype}}\n{{selection}}\n```\n\n" + -- .. "Please respond by writing table driven unit tests for the code above." + -- local agent = gp.get_command_agent() + -- gp.Prompt(params, gp.Target.enew, agent, template) + -- end, + -- + -- -- example of adding command which explains the selected code + -- Explain = function(gp, params) + -- local template = "I have the following code from {{filename}}:\n\n" + -- .. "```{{filetype}}\n{{selection}}\n```\n\n" + -- .. "Please respond by explaining the code above." + -- local agent = gp.get_chat_agent() + -- gp.Prompt(params, gp.Target.popup, agent, template) + -- end, + -- + -- -- example of usig enew as a function specifying type for the new buffer + -- CodeReview = function(gp, params) + -- local template = "I have the following code from {{filename}}:\n\n" + -- .. "```{{filetype}}\n{{selection}}\n```\n\n" + -- .. "Please analyze for code smells and suggest improvements." + -- local agent = gp.get_chat_agent() + -- gp.Prompt(params, gp.Target.enew("markdown"), agent, template) + -- end, + -- }, + -- } + -- require("gp").setup(conf) + -- + -- -- Setup shortcuts here (see Usage > Shortcuts in the Documentation/Readme) + -- vim.keymap.set("n", "Gc", "GpChatNew", keymapOptions("New chat")) + -- vim.keymap.set("n", "Gb", "GpBufferChatNew", keymapOptions("New buffer chat")) + -- vim.keymap.set("n", "Gt", "GpChatToggle", keymapOptions("Toggle chat")) + -- vim.keymap.set("n", "Gf", "GpChatFinder", keymapOptions("Chat finder")) + -- + -- vim.keymap.set("v", "Gc", ":'<,'>GpChatNew", keymapOptions("Chat new")) + -- vim.keymap.set("v", "Gb", ":'<,'>GpBufferChatNew", keymapOptions("Buffer chat new")) + -- vim.keymap.set("v", "Gp", ":'<,'>GpChatPaste", keymapOptions("Chat paste")) + -- vim.keymap.set("v", "Gt", ":'<,'>GpChatToggle", keymapOptions("Toggle chat")) + -- + -- vim.keymap.set("n", "Gh", "gpchatnew split", keymapOptions("New chat split")) + -- vim.keymap.set("n", "Gv", "gpchatnew vsplit", keymapOptions("New chat vsplit")) + -- vim.keymap.set("n", "Gn", "gpchatnew tabnew", keymapOptions("New chat tabnew")) + -- + -- vim.keymap.set("v", "Gh", ":'<,'>GpChatNew split", keymapOptions("Chat new split")) + -- vim.keymap.set("v", "Gv", ":'<,'>GpChatNew vsplit", keymapOptions("Chat new vsplit")) + -- vim.keymap.set("v", "Gn", ":'<,'>GpChatNew tabnew", keymapOptions("Chat new tabnew")) + -- + -- -- Prompt commands + -- vim.keymap.set("n", "Gw", "GpRewrite", keymapOptions("Inline rewrite")) + -- vim.keymap.set("n", "Gr", "GpCodeReview", keymapOptions("Code review")) + -- vim.keymap.set("n", "G]", "GpAppend", keymapOptions("Append (after)")) + -- vim.keymap.set("n", "G[", "GpPrepend", keymapOptions("Prepend (before)")) + -- + -- vim.keymap.set("v", "Gw", ":'<,'>GpRewrite", keymapOptions("Rewrite")) + -- vim.keymap.set("v", "Gr", ":'<,'>GpCodeReview", keymapOptions("Code review")) + -- vim.keymap.set("v", "G]", ":'<,'>GpAppend", keymapOptions("Append (after)")) + -- vim.keymap.set("v", "G[", ":'<,'>GpPrepend", keymapOptions("Prepend (before)")) + -- vim.keymap.set("v", "Gi", ":'<,'>GpImplement", keymapOptions("Implement selection")) + -- + -- vim.keymap.set("n", "Ggp", "GpPopup", keymapOptions("Popup")) + -- vim.keymap.set("n", "Gge", "GpEnew", keymapOptions("GpEnew")) + -- vim.keymap.set("n", "Ggc", "GpNew", keymapOptions("GpNew")) + -- vim.keymap.set("n", "Ggv", "GpVnew", keymapOptions("GpVnew")) + -- vim.keymap.set("n", "Ggn", "GpTabnew", keymapOptions("GpTabnew")) + -- + -- vim.keymap.set("v", "Ggp", ":'<,'>GpPopup", keymapOptions("Popup")) + -- vim.keymap.set("v", "Gge", ":'<,'>GpEnew", keymapOptions("GpEnew")) + -- vim.keymap.set("v", "Ggc", ":'<,'>GpNew", keymapOptions("GpNew")) + -- vim.keymap.set("v", "Ggv", ":'<,'>GpVnew", keymapOptions("GpVnew")) + -- vim.keymap.set("v", "Ggn", ":'<,'>GpTabnew", keymapOptions("GpTabnew")) + -- + -- vim.keymap.set("n", "Gx", "GpContext", keymapOptions("Toggle context")) + -- vim.keymap.set("v", "Gx", ":'<,'>GpContext", keymapOptions("Toggle context")) + -- + -- vim.keymap.set({ "n", "v", "x" }, "Ggs", "GpStop", keymapOptions("Stop")) + -- vim.keymap.set({ "n", "v", "x" }, "Gg]", "GpNextAgent", keymapOptions("Next agent")) + -- + -- -- optional Whisper commands with prefix w + -- vim.keymap.set("n", "GWw", "GpWhisper", keymapOptions("Whisper")) + -- vim.keymap.set("v", "GWw", ":'<,'>GpWhisper", keymapOptions("Whisper")) + -- + -- vim.keymap.set("n", "GWr", "GpWhisperRewrite", keymapOptions("Inline rewrite")) + -- vim.keymap.set("n", "GW]", "GpWhisperAppend", keymapOptions("Append (after)")) + -- vim.keymap.set("n", "GW[", "GpWhisperPrepend", keymapOptions("Prepend (before) ")) + -- + -- vim.keymap.set("v", "GWr", ":'<,'>GpWhisperRewrite", keymapOptions("Rewrite")) + -- vim.keymap.set("v", "GW]", ":'<,'>GpWhisperAppend", keymapOptions("Append (after)")) + -- vim.keymap.set("v", "GW[", ":'<,'>GpWhisperPrepend", keymapOptions("Prepend (before)")) + -- + -- vim.keymap.set("n", "GWp", "GpWhisperPopup", keymapOptions("Popup")) + -- vim.keymap.set("n", "GWe", "GpWhisperEnew", keymapOptions("Enew")) + -- vim.keymap.set("n", "GWc", "GpWhisperNew", keymapOptions("New")) + -- vim.keymap.set("n", "GWv", "GpWhisperVnew", keymapOptions("Vnew")) + -- vim.keymap.set("n", "GWn", "GpWhisperTabnew", keymapOptions("Tabnew")) + -- + -- vim.keymap.set("v", "GWp", ":'<,'>GpWhisperPopup", keymapOptions("Popup")) + -- vim.keymap.set("v", "GWe", ":'<,'>GpWhisperEnew", keymapOptions("Enew")) + -- vim.keymap.set("v", "GWc", ":'<,'>GpWhisperNew", keymapOptions("New")) + -- vim.keymap.set("v", "GWv", ":'<,'>GpWhisperVnew", keymapOptions("Vnew")) + -- vim.keymap.set("v", "GWn", ":'<,'>GpWhisperTabnew", keymapOptions("Tabnew")) + -- end, + -- }, + -- { -- "zbirenbaum/copilot.lua", -- cmd = "Copilot", -- build = ":Copilot auth", diff --git a/mac/.config/TheSiahxyz/lua/TheSiahxyz/plugins/python.lua b/mac/.config/TheSiahxyz/lua/TheSiahxyz/plugins/python.lua index bacdd9b..75b1ce7 100644 --- a/mac/.config/TheSiahxyz/lua/TheSiahxyz/plugins/python.lua +++ b/mac/.config/TheSiahxyz/lua/TheSiahxyz/plugins/python.lua @@ -28,7 +28,6 @@ return { { "nvim-telescope/telescope.nvim", branch = "0.1.x", dependencies = { "nvim-lua/plenary.nvim" } }, }, lazy = false, - branch = "regexp", -- This is the regexp branch, use this for the new version ft = "python", init = function() local wk = require("which-key") -- cgit v1.2.3