From dbfd7bfb7dc624d2da309fc9ee71dfcb75633696 Mon Sep 17 00:00:00 2001 From: Yaser Alraddadi Date: Thu, 19 Dec 2024 02:53:45 +0300 Subject: [PATCH] update --- init.lua | 14 +++++++------- lua/custom/plugins/copilot.lua | 24 ++---------------------- lua/custom/plugins/diagflow.lua | 11 ----------- 3 files changed, 9 insertions(+), 40 deletions(-) delete mode 100644 lua/custom/plugins/diagflow.lua diff --git a/init.lua b/init.lua index 472272e9..9d2c5014 100644 --- a/init.lua +++ b/init.lua @@ -805,13 +805,13 @@ require('lazy').setup({ harper_ls = { -- userDictPath = '~/dict.txt', }, - ltex = { - ltex = { - additionalRules = { - languageModel = '~/ngrams/', - }, - }, - }, + -- ltex = { + -- ltex = { + -- additionalRules = { + -- languageModel = '~/ngrams/', + -- }, + -- }, + -- }, } -- Ensure the servers and tools above are installed -- To check the current status of installed tools and/or manually install diff --git a/lua/custom/plugins/copilot.lua b/lua/custom/plugins/copilot.lua index 04b44928..1ec36880 100644 --- a/lua/custom/plugins/copilot.lua +++ b/lua/custom/plugins/copilot.lua @@ -31,38 +31,18 @@ return { -- { 'CopilotC-Nvim/CopilotChat.nvim', - branch = 'canary', dependencies = { { 'github/copilot.vim' }, -- or github/copilot.vim -- { 'zbirenbaum/copilot.lua' }, -- or github/copilot.vim - { 'nvim-lua/plenary.nvim' }, -- for curl, log wrapper + { 'nvim-lua/plenary.nvim', branch = 'master' }, -- for curl, log wrapper }, build = 'make tiktoken', -- Only on MacOS or Linux opts = { -- debug = true, -- Enable debugging -- See Configuration section for rest - model = 'claude-3.5-sonnet', -- GPT model to use, 'gpt-3.5-turbo', 'gpt-4', or 'gpt-4o', 'o1-mini', 'o1-preview' + model = 'claude-3.5-sonnet', -- GPT model to use, 'gpt-3.5-turbo', 'gpt-4', or 'gpt-4o', 'o1-mini', 'o1-preview', 'claude-3.5-sonnet' -- clear_chat_on_new_prompt = true, }, - -- See Commands section for default commands if you want to lazy load on them - -- - -- keys = { - -- { - -- 'ccq', - -- function() - -- local input = vim.fn.input 'Quick Chat: ' - -- if input ~= '' then - -- -- require('CopilotChat').ask(input, { selection = require('CopilotChat.select').buffer }) - -- require('CopilotChat').ask(input) - -- end - -- end, - -- desc = 'CopilotChat - Quick chat', - -- }, - -- }, - keys = { - -- { 'ccq', 'CopilotChatOpen', mode = 'x', desc = 'CopilotChat' }, - { 'ccq', ':CopilotChat ', mode = 'x', desc = 'CopilotChat' }, - }, }, -- { -- 'yetone/avante.nvim', diff --git a/lua/custom/plugins/diagflow.lua b/lua/custom/plugins/diagflow.lua deleted file mode 100644 index 110c39aa..00000000 --- a/lua/custom/plugins/diagflow.lua +++ /dev/null @@ -1,11 +0,0 @@ -return { - { - 'dgagn/diagflow.nvim', - -- event = 'LspAttach', This is what I use personnally and it works great - opts = { - placement = 'inline', - scope = 'cursor', -- 'cursor', 'line' this changes the scope, so instead of showing errors under the cursor, it shows errors on the entire line. - inline_padding_left = 3, - }, - }, -}