Add telescope live grep args plugin
This commit is contained in:
parent
3b33577c68
commit
04756b7991
3 changed files with 56 additions and 67 deletions
|
|
@ -11,15 +11,63 @@ local on_attach = function(on_attach, name)
|
|||
end
|
||||
|
||||
return {
|
||||
{
|
||||
'CopilotC-Nvim/CopilotChat.nvim',
|
||||
branch = 'canary',
|
||||
dependencies = {
|
||||
{ 'zbirenbaum/copilot.lua' }, -- or github/copilot.vim
|
||||
{ 'nvim-lua/plenary.nvim' }, -- for curl, log wrapper
|
||||
},
|
||||
build = 'make tiktoken', -- Only on MacOS or Linux
|
||||
opts = {
|
||||
debug = true, -- Enable debugging
|
||||
context = 'buffer',
|
||||
},
|
||||
keys = {
|
||||
{
|
||||
'<leader>aa',
|
||||
function()
|
||||
local chat = require 'CopilotChat'
|
||||
chat.toggle()
|
||||
end,
|
||||
desc = 'Copilot toggle chat',
|
||||
},
|
||||
{
|
||||
'<leader>aq',
|
||||
function()
|
||||
local input = vim.fn.input 'Quick Chat: '
|
||||
if input ~= '' then
|
||||
require('CopilotChat').ask(input, { selection = require('CopilotChat.select').buffer })
|
||||
end
|
||||
end,
|
||||
desc = 'Copilot quick chat',
|
||||
},
|
||||
{
|
||||
'<leader>ax',
|
||||
function()
|
||||
local chat = require 'CopilotChat'
|
||||
chat.reset()
|
||||
end,
|
||||
desc = 'Copilot chat reset',
|
||||
},
|
||||
{
|
||||
'<leader>ap',
|
||||
function()
|
||||
local actions = require 'CopilotChat.actions'
|
||||
require('CopilotChat.integrations.telescope').pick(actions.prompt_actions())
|
||||
end,
|
||||
desc = 'Copilot chat prompt actions',
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
'zbirenbaum/copilot.lua',
|
||||
cmd = 'Copilot',
|
||||
-- new
|
||||
-- event = 'InsertEnter',
|
||||
event = 'InsertEnter',
|
||||
build = ':Copilot auth',
|
||||
opts = {
|
||||
suggestion = { enabled = false },
|
||||
panel = { enabled = false },
|
||||
-- suggestion = { enabled = false },
|
||||
-- panel = { enabled = false },
|
||||
filetypes = {
|
||||
markdown = true,
|
||||
help = true,
|
||||
|
|
@ -38,15 +86,4 @@ return {
|
|||
end, 'copilot')
|
||||
end,
|
||||
},
|
||||
{
|
||||
'olimorris/codecompanion.nvim',
|
||||
dependencies = {
|
||||
'nvim-lua/plenary.nvim',
|
||||
'nvim-treesitter/nvim-treesitter',
|
||||
'hrsh7th/nvim-cmp', -- Optional: For using slash commands and variables in the chat buffer
|
||||
'nvim-telescope/telescope.nvim', -- Optional: For using slash commands
|
||||
{ 'stevearc/dressing.nvim', opts = {} }, -- Optional: Improves `vim.ui.select`
|
||||
},
|
||||
config = true,
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,51 +0,0 @@
|
|||
return {
|
||||
{
|
||||
'CopilotC-Nvim/CopilotChat.nvim',
|
||||
branch = 'canary',
|
||||
dependencies = {
|
||||
{ 'zbirenbaum/copilot.lua' }, -- or github/copilot.vim
|
||||
{ 'nvim-lua/plenary.nvim' }, -- for curl, log wrapper
|
||||
},
|
||||
build = 'make tiktoken', -- Only on MacOS or Linux
|
||||
opts = {
|
||||
debug = true, -- Enable debugging
|
||||
context = 'buffer',
|
||||
},
|
||||
keys = {
|
||||
{
|
||||
'<leader>aa',
|
||||
function()
|
||||
local chat = require 'CopilotChat'
|
||||
chat.toggle()
|
||||
end,
|
||||
desc = 'Copilot toggle chat',
|
||||
},
|
||||
{
|
||||
'<leader>aq',
|
||||
function()
|
||||
local input = vim.fn.input 'Quick Chat: '
|
||||
if input ~= '' then
|
||||
require('CopilotChat').ask(input, { selection = require('CopilotChat.select').buffer })
|
||||
end
|
||||
end,
|
||||
desc = 'Copilot quick chat',
|
||||
},
|
||||
{
|
||||
'<leader>ax',
|
||||
function()
|
||||
local chat = require 'CopilotChat'
|
||||
chat.reset()
|
||||
end,
|
||||
desc = 'Copilot chat reset',
|
||||
},
|
||||
{
|
||||
'<leader>ap',
|
||||
function()
|
||||
local actions = require 'CopilotChat.actions'
|
||||
require('CopilotChat.integrations.telescope').pick(actions.prompt_actions())
|
||||
end,
|
||||
desc = 'Copilot chat prompt actions',
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue