diff --git a/tools/nvim/lua/plugins/fileutils.lua b/tools/nvim/lua/plugins/fileutils.lua index 0d88b3d..b9e4232 100644 --- a/tools/nvim/lua/plugins/fileutils.lua +++ b/tools/nvim/lua/plugins/fileutils.lua @@ -9,6 +9,7 @@ return { }, { import = "plugins.mod.nvim-tree" }, { import = "plugins.mod.telescope" }, + -- { import = "plugins.mod.fzf" }, { "ahmedkhalf/project.nvim", opts = { diff --git a/tools/nvim/lua/plugins/misc.lua b/tools/nvim/lua/plugins/misc.lua index b193994..c880a4e 100644 --- a/tools/nvim/lua/plugins/misc.lua +++ b/tools/nvim/lua/plugins/misc.lua @@ -33,4 +33,21 @@ return { { import = "plugins.mod.which-keys-nvim" }, { import = "plugins.mod.copilot-lua" }, { import = "plugins.mod.avante-nvim" }, + { + "kawre/leetcode.nvim", + build = ":TSUpdate html", -- if you have `nvim-treesitter` installed + dependencies = { + "nvim-telescope/telescope.nvim", + -- "ibhagwan/fzf-lua", + "nvim-lua/plenary.nvim", + "MunifTanjim/nui.nvim", + }, + opts = { + -- configuration goes here + }, + }, + { + "3rd/image.nvim", + opts = {}, + }, } diff --git a/tools/nvim/lua/plugins/mod/avante-nvim.lua b/tools/nvim/lua/plugins/mod/avante-nvim.lua index 8171617..1aceef1 100644 --- a/tools/nvim/lua/plugins/mod/avante-nvim.lua +++ b/tools/nvim/lua/plugins/mod/avante-nvim.lua @@ -2,16 +2,16 @@ return { "yetone/avante.nvim", event = "VeryLazy", lazy = false, - version = false, -- Set this to "*" to always pull the latest release version, or set it to false to update to the latest code changes. + version = false, -- Set this to "*" to always pull the latest release version, or set it to false to update to the latest code changes. opts = { -- add any opts here -- for example provider = "openai", openai = { endpoint = "https://yunwu.ai/v1", - model = "claude-3-5-sonnet-latest", -- your desired model (or use gpt-4o, etc.) - timeout = 30000, -- timeout in milliseconds - temperature = 0, -- adjust if needed + model = "claude-3-7-sonnet-20250219", -- your desired model (or use gpt-4o, etc.) + timeout = 30000, -- timeout in milliseconds + temperature = 0, -- adjust if needed max_tokens = 4096, -- reasoning_effort = "high" -- only supported for "o" models }, @@ -25,10 +25,10 @@ return { "nvim-lua/plenary.nvim", "MunifTanjim/nui.nvim", --- The below dependencies are optional, - "nvim-telescope/telescope.nvim", -- for file_selector provider telescope - "hrsh7th/nvim-cmp", -- autocompletion for avante commands and mentions - "nvim-tree/nvim-web-devicons", -- or echasnovski/mini.icons - "zbirenbaum/copilot.lua", -- for providers='copilot' + "nvim-telescope/telescope.nvim", -- for file_selector provider telescope + "hrsh7th/nvim-cmp", -- autocompletion for avante commands and mentions + "nvim-tree/nvim-web-devicons", -- or echasnovski/mini.icons + "zbirenbaum/copilot.lua", -- for providers='copilot' { -- support for image pasting "HakonHarnes/img-clip.nvim", diff --git a/tools/nvim/lua/plugins/mod/fzf.lua b/tools/nvim/lua/plugins/mod/fzf.lua new file mode 100644 index 0000000..dc149e3 --- /dev/null +++ b/tools/nvim/lua/plugins/mod/fzf.lua @@ -0,0 +1,6 @@ +return { + "ibhagwan/fzf-lua", + -- optional for icon support + dependencies = { "nvim-tree/nvim-web-devicons" }, + opts = {}, +} diff --git a/tools/nvim/lua/plugins/mod/render-markdown.lua b/tools/nvim/lua/plugins/mod/render-markdown.lua index 97573ef..1eda692 100644 --- a/tools/nvim/lua/plugins/mod/render-markdown.lua +++ b/tools/nvim/lua/plugins/mod/render-markdown.lua @@ -7,7 +7,8 @@ return { file_types = { "markdown", "Avante" }, render_modes = { "n", "c", "t" }, latex = { - enabled = true, + -- enabled = true, + enabled = false, converter = "latex2text", highlight = "RenderMarkdownMath", top_pad = 0, diff --git a/tools/nvim/lua/plugins/mod/which-keys-nvim.lua b/tools/nvim/lua/plugins/mod/which-keys-nvim.lua index eb228f6..54bba67 100644 --- a/tools/nvim/lua/plugins/mod/which-keys-nvim.lua +++ b/tools/nvim/lua/plugins/mod/which-keys-nvim.lua @@ -1,18 +1,16 @@ return { - "folke/which-key.nvim", - event = "VeryLazy", - opts = { - -- your configuration comes here - -- or leave it empty to use the default settings - -- refer to the configuration section below - }, - keys = { - { - "?", - function() - require("which-key").show({ global = false }) - end, - desc = "Buffer Local Keymaps (which-key)", - }, + "folke/which-key.nvim", + event = "VeryLazy", + opts = { + preset = "modern", + }, + keys = { + { + "?", + function() + require("which-key").show({ global = false }) + end, + desc = "Buffer Local Keymaps (which-key)", }, + }, }