changed some things
This commit is contained in:
parent
fa153c97f6
commit
a32e33117e
6 changed files with 62 additions and 53 deletions
2
init.lua
2
init.lua
|
@ -6,7 +6,7 @@ require("pika.lazy")
|
||||||
-- │ themes are under ./lua/pika/plugins/colorschemes.lua │
|
-- │ themes are under ./lua/pika/plugins/colorschemes.lua │
|
||||||
-- ╰──────────────────────────────────────────────────────╯
|
-- ╰──────────────────────────────────────────────────────╯
|
||||||
|
|
||||||
vim.cmd.colorscheme("gruvbox-material")
|
vim.cmd.colorscheme("material-darker")
|
||||||
|
|
||||||
-- Keybind for saving clipboard screenshot and inserting a Markdown link
|
-- Keybind for saving clipboard screenshot and inserting a Markdown link
|
||||||
vim.api.nvim_set_keymap("n", "<leader>ps", ":lua SaveScreenshotAndInsertLink()<CR>", { noremap = true, silent = true })
|
vim.api.nvim_set_keymap("n", "<leader>ps", ":lua SaveScreenshotAndInsertLink()<CR>", { noremap = true, silent = true })
|
||||||
|
|
59
lua/pika/plugins/avante-ai.lua
Normal file
59
lua/pika/plugins/avante-ai.lua
Normal file
|
@ -0,0 +1,59 @@
|
||||||
|
return {
|
||||||
|
"yetone/avante.nvim",
|
||||||
|
event = "VeryLazy",
|
||||||
|
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://api.openai.com/v1",
|
||||||
|
model = "gpt-4o", -- 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 reasoning models (o1, etc.)
|
||||||
|
},
|
||||||
|
},
|
||||||
|
-- if you want to build from source then do `make BUILD_FROM_SOURCE=true`
|
||||||
|
build = "make",
|
||||||
|
-- build = "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false" -- for windows
|
||||||
|
dependencies = {
|
||||||
|
"nvim-treesitter/nvim-treesitter",
|
||||||
|
"stevearc/dressing.nvim",
|
||||||
|
"nvim-lua/plenary.nvim",
|
||||||
|
"MunifTanjim/nui.nvim",
|
||||||
|
--- The below dependencies are optional,
|
||||||
|
"echasnovski/mini.pick", -- for file_selector provider mini.pick
|
||||||
|
"nvim-telescope/telescope.nvim", -- for file_selector provider telescope
|
||||||
|
"hrsh7th/nvim-cmp", -- autocompletion for avante commands and mentions
|
||||||
|
"ibhagwan/fzf-lua", -- for file_selector provider fzf
|
||||||
|
"nvim-tree/nvim-web-devicons", -- or echasnovski/mini.icons
|
||||||
|
"zbirenbaum/copilot.lua", -- for providers='copilot'
|
||||||
|
{
|
||||||
|
-- support for image pasting
|
||||||
|
"HakonHarnes/img-clip.nvim",
|
||||||
|
event = "VeryLazy",
|
||||||
|
opts = {
|
||||||
|
-- recommended settings
|
||||||
|
default = {
|
||||||
|
embed_image_as_base64 = false,
|
||||||
|
prompt_for_file_name = false,
|
||||||
|
drag_and_drop = {
|
||||||
|
insert_mode = 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",
|
||||||
|
opts = {
|
||||||
|
file_types = { "markdown", "Avante" },
|
||||||
|
},
|
||||||
|
ft = { "markdown", "Avante" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
|
@ -1,19 +1,17 @@
|
||||||
return {
|
return {
|
||||||
{ "folke/tokyonight.nvim" },
|
{ "folke/tokyonight.nvim" },
|
||||||
-- { "catppuccin/nvim", name = "catppuccin" },
|
-- { "catppuccin/nvim", name = "catppuccin" },
|
||||||
{ "EdenEast/nightfox.nvim" },
|
-- { "EdenEast/nightfox.nvim" },
|
||||||
-- { "DanWlker/primeppuccin", name = "primeppuccin" },
|
-- { "DanWlker/primeppuccin", name = "primeppuccin" },
|
||||||
{ "rose-pine/neovim", name = "rose-pine" },
|
-- { "rose-pine/neovim", name = "rose-pine" },
|
||||||
{ "AlexvZyl/nordic.nvim" },
|
{ "AlexvZyl/nordic.nvim" },
|
||||||
{ "eldritch-theme/eldritch.nvim" },
|
{ "eldritch-theme/eldritch.nvim" },
|
||||||
-- { "sainnhe/sonokai" },
|
-- { "sainnhe/sonokai" },
|
||||||
{ "samharju/synthweave.nvim" },
|
{ "samharju/synthweave.nvim" },
|
||||||
{ "sainnhe/gruvbox-material" },
|
{ "sainnhe/gruvbox-material" },
|
||||||
-- { "66RING/zephyr-nvim" },
|
|
||||||
{ "pauchiner/pastelnight.nvim" },
|
{ "pauchiner/pastelnight.nvim" },
|
||||||
{ "ptdewey/darkearth-nvim" },
|
{ "ptdewey/darkearth-nvim" },
|
||||||
{ "marko-cerovac/material.nvim" },
|
{ "marko-cerovac/material.nvim" },
|
||||||
-- { "RedsXDD/neopywal.nvim" },
|
|
||||||
-- {
|
-- {
|
||||||
-- "ferdinandrau/lavish.nvim",
|
-- "ferdinandrau/lavish.nvim",
|
||||||
-- opts = {
|
-- opts = {
|
||||||
|
|
|
@ -1,15 +0,0 @@
|
||||||
return {
|
|
||||||
"derektata/lorem.nvim",
|
|
||||||
config = function()
|
|
||||||
require("lorem").setup({
|
|
||||||
sentenceLength = { -- custom configuration
|
|
||||||
words_per_sentence = 6,
|
|
||||||
sentences_per_paragraph = 4,
|
|
||||||
},
|
|
||||||
comma_chance = 0.3, -- 30% chance to insert a comma
|
|
||||||
max_commas_per_sentence = 2, -- maximum 2 commas per sentence
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
-- ─< LoremIpsum generator >────────────────────────────────────────────────────────────
|
|
||||||
vim.keymap.set("n", "<leader>L", ":LoremIpsum "),
|
|
||||||
}
|
|
|
@ -1,24 +0,0 @@
|
||||||
return {
|
|
||||||
-- "https://git.k4li.de/pika/telesnip.nvim",
|
|
||||||
"pik4li/telesnip.nvim",
|
|
||||||
dependencies = "nvim-telescope/telescope.nvim",
|
|
||||||
branch = "main",
|
|
||||||
opts = {
|
|
||||||
-- ╭────────────────────────────────────────────────────────────────────────╮
|
|
||||||
-- │ customize your custom_snippet_path (if you change the snippet_path │
|
|
||||||
-- │ you might break something, as this is the directory for the snippets │
|
|
||||||
-- │ inside the plugin folder) │
|
|
||||||
-- ╰────────────────────────────────────────────────────────────────────────╯
|
|
||||||
-- snippet_path = "/path/to/your/snippets",
|
|
||||||
-- custom_snippet_path = "~/.config/nvim/snippets/",
|
|
||||||
},
|
|
||||||
config = function(_, opts)
|
|
||||||
require("telesnip").setup(opts)
|
|
||||||
end,
|
|
||||||
keys = {
|
|
||||||
-- ─< just the standard two keybindings I configured. Be sure to make your own one, if you'd like >─
|
|
||||||
{ "<leader>sm", "<cmd>TelesnipShowSnippets<CR>", desc = "Open Snippet Picker" },
|
|
||||||
{ "<leader>sc", "<cmd>TelesnipCustomSnippet<CR>", desc = "Save Custom Snippet" },
|
|
||||||
{ "<leader>sc", "<cmd>TelesnipCustomSnippet<CR>", mode = "v", desc = "Save Custom Snippet" },
|
|
||||||
},
|
|
||||||
}
|
|
|
@ -1,9 +0,0 @@
|
||||||
return {
|
|
||||||
"folke/todo-comments.nvim",
|
|
||||||
dependencies = { "nvim-lua/plenary.nvim" },
|
|
||||||
opts = {
|
|
||||||
-- your configuration comes here
|
|
||||||
-- or leave it empty to use the default settings
|
|
||||||
-- refer to the configuration section below
|
|
||||||
},
|
|
||||||
}
|
|
Loading…
Add table
Add a link
Reference in a new issue