1
0
mirror of https://github.com/pratiktri/dotfiles.git synced 2026-05-06 19:43:40 +05:30

Compare commits

...

2 Commits

Author SHA1 Message Date
Pratik Tripathy 87169ab4ed chore(neovim): neogit: Add process_spinner & use log graph_style 2026-04-21 15:49:19 +05:30
Pratik Tripathy 288a93e253 fix(neovim): Use default keymaps for incremental selection
- Remove `mini.ai`: conflicts with `an`, `in` incremental selection defaults
- Remove old keymaps
2026-04-21 15:11:18 +05:30
3 changed files with 14 additions and 15 deletions
@@ -285,11 +285,12 @@ return {
})
-- Incremental selection is NATIVE in 0.12 (no plugin config)
-- 0.12 defaults: gnn (init), grn (expand node), grm (shrink), grc (scope)
-- Remap to your existing keys:
vim.keymap.set("n", "<C-space>", "gnn", { remap = true, desc = "Init treesitter selection" })
vim.keymap.set("x", "<C-CR>", "grc", { remap = true, desc = "Expand scope selection" })
vim.keymap.set("x", "<bs>", "grm", { remap = true, desc = "Shrink node selection" })
-- 0.12 defaults:
-- v:
-- an (expand out)
-- in (shrink in)
-- ]n (next sibling)
-- [n (previous sibling)
end,
},
+8 -9
View File
@@ -7,20 +7,19 @@ return {
"sindrets/diffview.nvim",
"nvim-telescope/telescope.nvim",
},
config = true,
config = function()
local neogit = require("neogit")
neogit.setup({
graph_style = "kitty",
process_spinner = true,
})
end,
keys = {
{ "<leader>gg", "<cmd>Neogit<cr>", desc = "Git: Open Neogit", mode = { "n" } },
},
},
-- Git Diffview
{
"sindrets/diffview.nvim",
keys = {
{ "<leader>gD", "<cmd>DiffviewOpen<cr>", desc = "Git: Diffview Project against index/staging", mode = { "n" } },
},
},
-- Adds git related signs to the gutter, as well as utilities for managing changes
{
"lewis6991/gitsigns.nvim",
@@ -7,7 +7,6 @@ return {
config = function()
require("mini.comment").setup()
require("mini.pairs").setup()
require("mini.ai").setup({ n_lines = 500 })
-- mini.surround
-- functionality similar to tpope's vim-surround