Telescope bind

This commit is contained in:
Zacharias-Brohn
2025-08-12 12:30:24 +02:00
parent ba3510d2a6
commit e9982ccc25
2 changed files with 11 additions and 11 deletions
+7 -5
View File
@@ -1,6 +1,6 @@
require("CopilotChat").setup { require("CopilotChat").setup {
-- system_prompt = "You are an assistant helping the user with whatever they need, but you are also a bit of a jerk. Do not use profanity.", -- system_prompt = "You are an assistant helping the user with whatever they need, but you are also a bit of a jerk. Do not use profanity.",
model = "deepseek-r1:latest", model = "gpt-oss:20b",
prompts = { prompts = {
CivitAI = { CivitAI = {
system_prompt = "You are an assistant helping with stable diffusion models and python to implement failsafes for a server regarding image generation.", system_prompt = "You are an assistant helping with stable diffusion models and python to implement failsafes for a server regarding image generation.",
@@ -10,13 +10,15 @@ require("CopilotChat").setup {
} }
}, },
question_header = " User", headers = {
answer_header = "󰁤 Copilot", user = ' You: ',
error_header = "󰅚 Error", assistant = ' Copilot: ',
separator = '───', tool = '󰖷 Tool: ',
},
providers = { providers = {
ollama = { ollama = {
embed = 'copilot_embeddings', -- Use Copilot as embedding provider
-- Copy copilot input and output processing -- Copy copilot input and output processing
prepare_input = require('CopilotChat.config.providers').copilot.prepare_input, prepare_input = require('CopilotChat.config.providers').copilot.prepare_input,
+4 -6
View File
@@ -20,20 +20,18 @@ map("n", "<A-c>", vim.cmd.CopilotChatToggle)
map("i", "<A-c>", vim.cmd.CopilotChatToggle) map("i", "<A-c>", vim.cmd.CopilotChatToggle)
map("v", "<A-c>", vim.cmd.CopilotChatToggle) map("v", "<A-c>", vim.cmd.CopilotChatToggle)
-- map('n', '<leader>e', vim.cmd.NvimTreeToggle) -- Explorer and Undotree
map('n', '<leader>e', function() Snacks.explorer() end) map('n', '<leader>e', function() Snacks.explorer() end)
map('n', '<leader>u', require('undotree').toggle, { noremap = true, silent = true }) map('n', '<leader>u', require('undotree').toggle, { noremap = true, silent = true })
-- Telescope grep
map("n", "<leader>g", require("telescope.builtin").live_grep, {desc = "Telescope grep" })
map("n", "<A-->", ":bdelete<CR>") map("n", "<A-->", ":bdelete<CR>")
-- map("n", "<SA-->", ":BufferRestore<CR>") -- map("n", "<SA-->", ":BufferRestore<CR>")
map("n", "<C-a>", "ggVG", { noremap = true, silent = true }) map("n", "<C-a>", "ggVG", { noremap = true, silent = true })
map("n", "<leader>pv", vim.cmd.Ex)
map("v", "J", ":m '>+1<CR>gv=gv")
map("v", "K", ":m '<-2<CR>gv=gv")
map("n", "J", "mzJ`z") map("n", "J", "mzJ`z")
map("n", "<C-d>", "<C-d>zz") map("n", "<C-d>", "<C-d>zz")
map("n", "<C-u>", "<C-u>zz") map("n", "<C-u>", "<C-u>zz")