mirror of
https://github.com/harivansh-afk/nvim.git
synced 2026-04-15 07:04:47 +00:00
remove pointless plugins
This commit is contained in:
parent
c2c1248706
commit
24041e3a52
9 changed files with 49 additions and 438 deletions
|
|
@ -1,26 +0,0 @@
|
|||
-- Colorschemes disabled - using NvChad base46 for theming
|
||||
-- Use :lua require('nvchad.themes').open() to switch themes
|
||||
-- Or modify lua/chadrc.lua to change the default theme
|
||||
|
||||
return {
|
||||
-- Keep these as fallbacks if needed (lazy loaded, won't interfere)
|
||||
-- {
|
||||
-- "ellisonleao/gruvbox.nvim",
|
||||
-- name = "gruvbox",
|
||||
-- enabled = false,
|
||||
-- },
|
||||
-- {
|
||||
-- "datsfilipe/vesper.nvim",
|
||||
-- name = "vesper",
|
||||
-- enabled = false,
|
||||
-- },
|
||||
-- {
|
||||
-- 'maxmx03/solarized.nvim',
|
||||
-- enabled = false,
|
||||
-- },
|
||||
-- {
|
||||
-- "folke/tokyonight.nvim",
|
||||
-- name = "tokyonight",
|
||||
-- enabled = false,
|
||||
-- },
|
||||
}
|
||||
|
|
@ -66,13 +66,4 @@ return {
|
|||
},
|
||||
},
|
||||
|
||||
-- Fugitive: Additional Git commands
|
||||
{
|
||||
'tpope/vim-fugitive',
|
||||
cmd = { 'Git', 'Gblame', 'Gdiff', 'Gread', 'Gwrite', 'Ggrep' },
|
||||
keys = {
|
||||
{ '<leader>gb', '<cmd>Git blame<cr>', desc = 'Git Blame' },
|
||||
{ '<leader>gd', '<cmd>Gdiff<cr>', desc = 'Git Diff (Fugitive)' },
|
||||
}
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,35 +0,0 @@
|
|||
-- Disabled: Using NvChad statusline instead
|
||||
-- To re-enable lualine: set enabled = true below AND
|
||||
-- in lua/chadrc.lua set M.ui.statusline.enabled = false
|
||||
return {
|
||||
'nvim-lualine/lualine.nvim',
|
||||
enabled = false, -- Disabled in favor of NvChad statusline
|
||||
event = 'VeryLazy',
|
||||
dependencies = { 'nvim-tree/nvim-web-devicons' },
|
||||
opts = {
|
||||
options = {
|
||||
theme = 'auto',
|
||||
component_separators = { left = '', right = '' },
|
||||
section_separators = { left = '', right = '' },
|
||||
},
|
||||
sections = {
|
||||
lualine_a = {'mode'},
|
||||
lualine_b = {'branch', 'diff', 'diagnostics'},
|
||||
lualine_c = {'filename'},
|
||||
lualine_x = {'encoding', 'fileformat', 'filetype'},
|
||||
lualine_y = {
|
||||
{
|
||||
function()
|
||||
local search = vim.fn.getreg('/')
|
||||
if search == '' then return '' end
|
||||
local ok, result = pcall(vim.fn.searchcount, { maxcount = 0, timeout = 100 })
|
||||
if not ok or not result or result.total == 0 then return '' end
|
||||
return string.format('[%d/%d]', result.current, result.total)
|
||||
end,
|
||||
},
|
||||
'progress'
|
||||
},
|
||||
lualine_z = {'location'}
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
@ -27,9 +27,5 @@ return {
|
|||
end,
|
||||
},
|
||||
|
||||
-- Optional: theme switcher UI (use :lua require('nvchad.themes').open())
|
||||
{
|
||||
"nvchad/volt",
|
||||
lazy = true,
|
||||
},
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,131 +0,0 @@
|
|||
-- AI Refactor keybindings
|
||||
-- Uses refactor.ts from ai-scripts repo to perform AI-powered refactoring
|
||||
-- Write a comment at the end of the file with instructions, then press Space+<key>
|
||||
|
||||
return {
|
||||
{
|
||||
"ai-refactor",
|
||||
dir = vim.fn.expand("~/Documents/Github/ai-scripts"),
|
||||
lazy = false,
|
||||
config = function()
|
||||
local refactor_script = vim.fn.expand("~/Documents/Github/ai-scripts/refactor.ts")
|
||||
local active_jobs = {}
|
||||
|
||||
-- Helper function to run refactor with a specific model
|
||||
local function refactor_with_model(model)
|
||||
return function()
|
||||
local filepath = vim.fn.expand("%:p")
|
||||
vim.cmd("write")
|
||||
|
||||
vim.notify(string.format("Refactoring with model '%s'...", model), vim.log.levels.INFO)
|
||||
|
||||
-- Run refactor script synchronously
|
||||
local cmd = {
|
||||
"bun", refactor_script, filepath, model
|
||||
}
|
||||
|
||||
local job_id = vim.fn.jobstart(cmd, {
|
||||
on_exit = function(j_id, exit_code)
|
||||
active_jobs[j_id] = nil
|
||||
if exit_code == 0 then
|
||||
vim.schedule(function()
|
||||
vim.cmd("checktime") -- Reload file if changed
|
||||
vim.notify("Refactor complete!", vim.log.levels.INFO)
|
||||
end)
|
||||
else
|
||||
vim.schedule(function()
|
||||
vim.notify(string.format("Refactor failed with code %d", exit_code), vim.log.levels.ERROR)
|
||||
end)
|
||||
end
|
||||
end,
|
||||
on_stdout = function(_, data)
|
||||
if data and #data > 0 then
|
||||
vim.schedule(function()
|
||||
for _, line in ipairs(data) do
|
||||
if line ~= "" then
|
||||
print(line)
|
||||
end
|
||||
end
|
||||
end)
|
||||
end
|
||||
end,
|
||||
on_stderr = function(_, data)
|
||||
if data and #data > 0 then
|
||||
vim.schedule(function()
|
||||
for _, line in ipairs(data) do
|
||||
if line ~= "" then
|
||||
vim.notify(line, vim.log.levels.WARN)
|
||||
end
|
||||
end
|
||||
end)
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
||||
if job_id > 0 then
|
||||
active_jobs[job_id] = {
|
||||
model = model,
|
||||
file = vim.fn.fnamemodify(filepath, ":t"),
|
||||
started = os.time()
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
-- Command to list active refactor jobs
|
||||
vim.api.nvim_create_user_command("RefactorJobs", function()
|
||||
if vim.tbl_count(active_jobs) == 0 then
|
||||
vim.notify("No active refactor jobs", vim.log.levels.INFO)
|
||||
return
|
||||
end
|
||||
|
||||
local lines = { "Active refactor jobs:" }
|
||||
for job_id, info in pairs(active_jobs) do
|
||||
local elapsed = os.time() - info.started
|
||||
table.insert(lines, string.format(" [%d] %s - %s (%ds)", job_id, info.model, info.file, elapsed))
|
||||
end
|
||||
vim.notify(table.concat(lines, "\n"), vim.log.levels.INFO)
|
||||
end, {})
|
||||
|
||||
-- GPT-5.1 models
|
||||
vim.keymap.set("n", "<leader>ag", refactor_with_model("g"), {
|
||||
desc = "Refactor with GPT-5.1 (medium)"
|
||||
})
|
||||
vim.keymap.set("n", "<leader>aG", refactor_with_model("G"), {
|
||||
desc = "Refactor with GPT-5.1 (high)"
|
||||
})
|
||||
|
||||
-- Gemini-3 models
|
||||
vim.keymap.set("n", "<leader>ai", refactor_with_model("i"), {
|
||||
desc = "Refactor with Gemini-3 (medium)"
|
||||
})
|
||||
vim.keymap.set("n", "<leader>aI", refactor_with_model("I"), {
|
||||
desc = "Refactor with Gemini-3 (high)"
|
||||
})
|
||||
|
||||
-- Claude Sonnet models
|
||||
vim.keymap.set("n", "<leader>as", refactor_with_model("s"), {
|
||||
desc = "Refactor with Sonnet-4.5 (medium)"
|
||||
})
|
||||
vim.keymap.set("n", "<leader>aS", refactor_with_model("S"), {
|
||||
desc = "Refactor with Sonnet-4.5 (high)"
|
||||
})
|
||||
|
||||
-- Claude Opus models
|
||||
vim.keymap.set("n", "<leader>ao", refactor_with_model("o"), {
|
||||
desc = "Refactor with Opus-4 (medium)"
|
||||
})
|
||||
vim.keymap.set("n", "<leader>aO", refactor_with_model("O"), {
|
||||
desc = "Refactor with Opus-4 (high)"
|
||||
})
|
||||
|
||||
-- xAI Grok models
|
||||
vim.keymap.set("n", "<leader>ax", refactor_with_model("x"), {
|
||||
desc = "Refactor with Grok-4 (medium)"
|
||||
})
|
||||
vim.keymap.set("n", "<leader>aX", refactor_with_model("X"), {
|
||||
desc = "Refactor with Grok-4 (high)"
|
||||
})
|
||||
end,
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue