refactor(nvim): streamline Neovim configuration for better performance

This commit is contained in:
Prad Nukala committed 2025-10-08 10:55:09 -04:00
1 parent 6a6c49b78e
commit 60c1f88cfb
2 files changed
+27 -2

No files matched your search

+1 -1
View File
@@ -20,4 +20,4 @@ tags.*
# Temporary # Temporary
tmp tmp
temp temp
lua/plugins !lua/plugins
+26 -1
View File
@@ -245,7 +245,7 @@ return {
-- automatically update working directory (update manually with `:AstroRoot`) -- automatically update working directory (update manually with `:AstroRoot`)
autochdir = true, autochdir = true,
-- scope of working directory to change ("global"|"tab"|"win") -- scope of working directory to change ("global"|"tab"|"win")
scope = "global", -- Changed from "win" to "global" to make directory changes apply globally scope = "win", -- Changed from "win" to "global" to make directory changes apply globally
-- show notification on every working directory change -- show notification on every working directory change
notify = false, notify = false,
}, },
@@ -340,6 +340,16 @@ return {
end, end,
desc = "Dashboard", desc = "Dashboard",
}, },
["<C-g><C-d>"] = {
function()
require("snacks").terminal("gh dash", {
hidden = true,
auto_close = true,
interactive = true,
})
end,
desc = "GH Dash",
},
["<C-g>g"] = { ["<C-g>g"] = {
function() function()
require("snacks").terminal("lazygit", { require("snacks").terminal("lazygit", {
@@ -350,6 +360,21 @@ return {
end, end,
desc = "Lazygit", desc = "Lazygit",
}, },
["<C-g><C-g>"] = {
function()
require("snacks").terminal("lazygit", {
hidden = true,
auto_close = true,
interactive = true,
})
end,
desc = "Lazygit",
},
["<C-g><C-i>"] = { "<cmd>Octo issue list<CR>", desc = "List Issues" },
["<C-g><C-l>"] = { "<cmd>Octo label<CR>", desc = "Manage Labels" },
["<C-g><C-p>"] = { "<cmd>Octo pr list<CR>", desc = "List PRs" },
["<C-g>s"] = { "<cmd>Octo search<CR>", desc = "Octo Search" },
["<C-g><C-r>"] = { "<cmd>!gh release list<CR>", desc = "List Releases" },
["<C-g>d"] = { ["<C-g>d"] = {
function() require("snacks").picker.git_diff() end, function() require("snacks").picker.git_diff() end,
desc = "Search git diffs", desc = "Search git diffs",