mirror of
https://github.com/harivansh-afk/nvim.git
synced 2026-04-17 17:03:27 +00:00
new theme + plugins
This commit is contained in:
parent
a8610285c6
commit
675652a4b7
5 changed files with 154 additions and 8 deletions
101
lua/plugins/avante.lua
Normal file
101
lua/plugins/avante.lua
Normal file
|
|
@ -0,0 +1,101 @@
|
|||
return {
|
||||
"yetone/avante.nvim",
|
||||
event = "VeryLazy",
|
||||
lazy = false,
|
||||
version = false,
|
||||
opts = {
|
||||
provider = "claude",
|
||||
auto_suggestions_provider = "claude",
|
||||
providers = {
|
||||
claude = {
|
||||
endpoint = "https://api.anthropic.com/v1",
|
||||
model = "claude-sonnet-4-20250514",
|
||||
extra_request_body = {
|
||||
temperature = 0,
|
||||
max_tokens = 4096,
|
||||
},
|
||||
},
|
||||
},
|
||||
behaviour = {
|
||||
auto_suggestions = false,
|
||||
auto_set_highlight_group = true,
|
||||
auto_set_keymaps = true,
|
||||
auto_apply_diff_after_generation = false,
|
||||
support_paste_from_clipboard = false,
|
||||
},
|
||||
mappings = {
|
||||
diff = {
|
||||
ours = "co",
|
||||
theirs = "ct",
|
||||
all_theirs = "ca",
|
||||
both = "cb",
|
||||
cursor = "cc",
|
||||
next = "]x",
|
||||
prev = "[x",
|
||||
},
|
||||
suggestion = {
|
||||
accept = "<M-l>",
|
||||
next = "<M-]>",
|
||||
prev = "<M-[>",
|
||||
dismiss = "<C-]>",
|
||||
},
|
||||
jump = {
|
||||
next = "]]",
|
||||
prev = "[[",
|
||||
},
|
||||
submit = {
|
||||
normal = "<CR>",
|
||||
insert = "<C-s>",
|
||||
},
|
||||
},
|
||||
hints = { enabled = true },
|
||||
windows = {
|
||||
position = "right",
|
||||
wrap = true,
|
||||
width = 30,
|
||||
sidebar_header = {
|
||||
align = "center",
|
||||
rounded = true,
|
||||
},
|
||||
},
|
||||
highlights = {
|
||||
diff = {
|
||||
current = "DiffText",
|
||||
incoming = "DiffAdd",
|
||||
},
|
||||
},
|
||||
diff = {
|
||||
autojump = true,
|
||||
list_opener = "copen",
|
||||
},
|
||||
},
|
||||
build = "make",
|
||||
dependencies = {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
"stevearc/dressing.nvim",
|
||||
"nvim-lua/plenary.nvim",
|
||||
"MunifTanjim/nui.nvim",
|
||||
"nvim-tree/nvim-web-devicons",
|
||||
{
|
||||
"HakonHarnes/img-clip.nvim",
|
||||
event = "VeryLazy",
|
||||
opts = {
|
||||
default = {
|
||||
embed_image_as_base64 = false,
|
||||
prompt_for_file_name = false,
|
||||
drag_and_drop = {
|
||||
insert_mode = true,
|
||||
},
|
||||
use_absolute_path = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"MeanderingProgrammer/render-markdown.nvim",
|
||||
opts = {
|
||||
file_types = { "markdown", "Avante" },
|
||||
},
|
||||
ft = { "markdown", "Avante" },
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
@ -15,7 +15,17 @@ return {
|
|||
|
||||
return {
|
||||
keymap = {
|
||||
preset = "super-tab",
|
||||
preset = "enter", -- Changed from "super-tab" to "enter"
|
||||
['<C-space>'] = { 'show', 'show_documentation', 'hide_documentation' },
|
||||
['<C-e>'] = { 'hide' },
|
||||
['<C-y>'] = { 'select_and_accept' },
|
||||
|
||||
['<C-p>'] = { 'select_prev', 'fallback' },
|
||||
['<C-n>'] = { 'select_next', 'fallback' },
|
||||
|
||||
['<C-b>'] = { 'scroll_documentation_up', 'fallback' },
|
||||
['<C-f>'] = { 'scroll_documentation_down', 'fallback' },
|
||||
|
||||
['<A-1>'] = { function(cmp) cmp.accept({ index = 1 }) end },
|
||||
['<A-2>'] = { function(cmp) cmp.accept({ index = 2 }) end },
|
||||
['<A-3>'] = { function(cmp) cmp.accept({ index = 3 }) end },
|
||||
|
|
|
|||
|
|
@ -1,4 +1,16 @@
|
|||
return {
|
||||
{
|
||||
"ellisonleao/gruvbox.nvim",
|
||||
name = "gruvbox",
|
||||
priority = 1000,
|
||||
lazy = false,
|
||||
config = function()
|
||||
require("gruvbox").setup({
|
||||
contrast = "hard", -- can be "hard", "soft" or empty string
|
||||
transparent_mode = false,
|
||||
})
|
||||
end,
|
||||
},
|
||||
{
|
||||
"datsfilipe/vesper.nvim",
|
||||
name = "vesper",
|
||||
|
|
@ -41,10 +53,9 @@ return {
|
|||
end
|
||||
end
|
||||
|
||||
-- Default to dark
|
||||
-- Default to dark with Gruvbox
|
||||
vim.o.background = "dark"
|
||||
require("vesper").setup({ transparent = true })
|
||||
vim.cmd.colorscheme("vesper")
|
||||
vim.cmd.colorscheme("gruvbox")
|
||||
end
|
||||
|
||||
-- Set theme on startup
|
||||
|
|
@ -52,15 +63,14 @@ return {
|
|||
|
||||
-- Add command to manually toggle
|
||||
vim.api.nvim_create_user_command("ToggleTheme", function()
|
||||
if vim.g.colors_name == "vesper" then
|
||||
if vim.g.colors_name == "gruvbox" then
|
||||
vim.o.termguicolors = true
|
||||
vim.o.background = "light"
|
||||
require('solarized').setup({})
|
||||
vim.cmd.colorscheme("solarized")
|
||||
else
|
||||
vim.o.background = "dark"
|
||||
require("vesper").setup({ transparent = true })
|
||||
vim.cmd.colorscheme("vesper")
|
||||
vim.cmd.colorscheme("gruvbox")
|
||||
end
|
||||
end, {})
|
||||
end,
|
||||
|
|
|
|||
19
lua/plugins/supermaven.lua
Normal file
19
lua/plugins/supermaven.lua
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
return {
|
||||
"supermaven-inc/supermaven-nvim",
|
||||
event = "InsertEnter",
|
||||
opts = {
|
||||
keymaps = {
|
||||
accept_suggestion = "<Tab>",
|
||||
clear_suggestion = "<C-]>",
|
||||
accept_word = "<C-j>",
|
||||
},
|
||||
ignore_filetypes = { "gitcommit", "TelescopePrompt" },
|
||||
color = {
|
||||
suggestion_color = "#808080",
|
||||
cterm = 244,
|
||||
},
|
||||
log_level = "info",
|
||||
disable_inline_completion = false,
|
||||
disable_keymaps = false,
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue