style(plugins): clean up commented code for avante.nvim

pull/128/head
flin16 2025-06-11 11:08:22 -05:00
parent 5c8a971651
commit 848664a376
3 changed files with 68 additions and 99 deletions

View File

@ -3,4 +3,5 @@
"diagnostic.enable": false, "diagnostic.enable": false,
"inlayHint.enable": false, "inlayHint.enable": false,
"codeLens.enable": true, "codeLens.enable": true,
"snippets.ultisnips.pythonPrompt": false,
} }

View File

@ -79,36 +79,3 @@ keyset("v", "<D-v>", '"_d"+gP', { desc = "Remove the selected part and paste fro
keyset("v", "<D-c>", '"+y', { desc = "Copy to clipboard in visual mode" }) keyset("v", "<D-c>", '"+y', { desc = "Copy to clipboard in visual mode" })
keyset("v", "<D-x>", '"+d', { desc = "Cut to clipboard" }) keyset("v", "<D-x>", '"+d', { desc = "Cut to clipboard" })
map_nv("<D-a>", "gg<S-v>G", { desc = "Select all" }) map_nv("<D-a>", "gg<S-v>G", { desc = "Select all" })
-- end
-- Set the keymap <leader>fg to trigger the picker
-- keyset("n", "<leader>fg", function()
-- local Snacks = require("snacks")
-- return Snacks.picker({
-- finder = "lsp_symbols", -- Use the LSP symbols as the source
-- layout = {
-- layout = {
-- box = "horizontal",
-- width = 0.5,
-- height = 0.5,
-- {
-- box = "vertical",
-- border = "rounded",
-- title = "Find directory",
-- { win = "input", height = 1, border = "bottom" },
-- { win = "list", border = "none" },
-- },
-- },
-- },
-- format = 'lsp_symbol',
-- confirm = function(picker, item)
-- picker:close()
-- Snacks.picker.pick("files", {
-- dirs = { item.file },
-- })
-- end,
-- filter = {
-- tex = true,
-- }
-- })
-- end
-- , { desc = "Find LaTeX environments using LSP" }) -- Updated description

View File

@ -16,9 +16,9 @@ return {
}, },
{ {
"tomasr/molokai", -- colorscheme "tomasr/molokai", -- colorscheme
config = function() -- config = function()
vim.cmd.colorscheme("molokai") -- vim.cmd.colorscheme("molokai")
end, -- end,
}, },
{ {
"folke/which-key.nvim", "folke/which-key.nvim",
@ -204,69 +204,70 @@ return {
-- end -- end
end, end,
}, },
{ { "HakonHarnes/img-clip.nvim" },
"yetone/avante.nvim", -- {
event = "VeryLazy", -- "yetone/avante.nvim",
version = false, -- Never set this value to "*"! Never! -- event = "VeryLazy",
opts = { -- version = false, -- Never set this value to "*"! Never!
-- add any opts here -- opts = {
hints = { enabled = false }, -- -- add any opts here
-- for example -- hints = { enabled = false },
provider = "openai", -- -- for example
providers = { -- provider = "openai",
openai = { -- providers = {
endpoint = "https://api.openai.com/v1", -- openai = {
model = "gpt-4o", -- your desired model (or use gpt-4o, etc.) -- endpoint = "https://api.openai.com/v1",
extra_request_body = { -- model = "gpt-4o", -- your desired model (or use gpt-4o, etc.)
temperature = 0.75, -- extra_request_body = {
max_completion_tokens = 8192, -- Increase this to include reasoning tokens (for reasoning models) -- temperature = 0.75,
--reasoning_effort = "medium", -- low|medium|high, only used for reasoning models -- max_completion_tokens = 8192, -- Increase this to include reasoning tokens (for reasoning models)
}, -- --reasoning_effort = "medium", -- low|medium|high, only used for reasoning models
}, -- },
}, -- },
}, -- },
-- if you want to build from source then do `make BUILD_FROM_SOURCE=true` -- },
build = "make", -- -- if you want to build from source then do `make BUILD_FROM_SOURCE=true`
-- build = "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false" -- for windows -- build = "make",
dependencies = { -- -- build = "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false" -- for windows
"nvim-treesitter/nvim-treesitter", -- dependencies = {
"stevearc/dressing.nvim", -- "nvim-treesitter/nvim-treesitter",
"nvim-lua/plenary.nvim", -- "stevearc/dressing.nvim",
"MunifTanjim/nui.nvim", -- "nvim-lua/plenary.nvim",
--- The below dependencies are optional, -- "MunifTanjim/nui.nvim",
"echasnovski/mini.pick", -- for file_selector provider mini.pick -- --- The below dependencies are optional,
"nvim-telescope/telescope.nvim", -- for file_selector provider telescope -- "echasnovski/mini.pick", -- for file_selector provider mini.pick
"hrsh7th/nvim-cmp", -- autocompletion for avante commands and mentions -- "nvim-telescope/telescope.nvim", -- for file_selector provider telescope
"ibhagwan/fzf-lua", -- for file_selector provider fzf -- "hrsh7th/nvim-cmp", -- autocompletion for avante commands and mentions
"nvim-tree/nvim-web-devicons", -- or echasnovski/mini.icons -- "ibhagwan/fzf-lua", -- for file_selector provider fzf
"zbirenbaum/copilot.lua", -- for providers='copilot' -- "nvim-tree/nvim-web-devicons", -- or echasnovski/mini.icons
{ -- "zbirenbaum/copilot.lua", -- for providers='copilot'
-- support for image pasting -- {
"HakonHarnes/img-clip.nvim", -- -- support for image pasting
event = "VeryLazy", -- "HakonHarnes/img-clip.nvim",
opts = { -- event = "VeryLazy",
-- recommended settings -- opts = {
default = { -- -- recommended settings
embed_image_as_base64 = false, -- default = {
prompt_for_file_name = false, -- embed_image_as_base64 = false,
drag_and_drop = { -- prompt_for_file_name = false,
insert_mode = true, -- drag_and_drop = {
}, -- insert_mode = true,
-- required for Windows users -- },
use_absolute_path = 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", -- -- Make sure to set this up properly if you have lazy=true
opts = { -- "MeanderingProgrammer/render-markdown.nvim",
file_types = { "markdown", "Avante" }, -- opts = {
}, -- file_types = { "markdown", "Avante" },
ft = { "markdown", "Avante" }, -- },
}, -- ft = { "markdown", "Avante" },
}, -- },
}, -- },
-- },
{ {
"flin16/vim-overleaf", "flin16/vim-overleaf",
}, },