-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Using Alacritty (next to try WezTerm/Kitty) - Neovim overhaul 2024: https://www.youtube.com/watch?v=6pAG3BHurdM
- Loading branch information
Showing
26 changed files
with
501 additions
and
241 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
require("user.core.options") | ||
require("user.core.keymaps") | ||
require("user.core") | ||
require("user.lazy") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
require("user.core.options") | ||
require("user.core.keymaps") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,47 @@ | ||
return { | ||
"lewis6991/gitsigns.nvim", | ||
event = { "BufReadPre", "BufNewFile" }, | ||
config = true, | ||
} | ||
opts = { | ||
on_attach = function(bufnr) | ||
local gs = package.loaded.gitsigns | ||
|
||
local function map(mode, l, r, desc) | ||
vim.keymap.set(mode, l, r, { buffer = bufnr, desc = desc }) | ||
end | ||
|
||
-- Navigation | ||
map("n", "]h", gs.next_hunk, "Next Hunk") | ||
map("n", "[h", gs.prev_hunk, "Prev Hunk") | ||
|
||
-- Actions | ||
map("n", "<leader>hs", gs.stage_hunk, "Stage hunk") | ||
map("n", "<leader>hr", gs.reset_hunk, "Reset hunk") | ||
map("v", "<leader>hs", function() | ||
gs.stage_hunk({ vim.fn.line("."), vim.fn.line("v") }) | ||
end, "Stage hunk") | ||
map("v", "<leader>hr", function() | ||
gs.reset_hunk({ vim.fn.line("."), vim.fn.line("v") }) | ||
end, "Reset hunk") | ||
|
||
map("n", "<leader>hS", gs.stage_buffer, "Stage buffer") | ||
map("n", "<leader>hR", gs.reset_buffer, "Reset buffer") | ||
|
||
map("n", "<leader>hu", gs.undo_stage_hunk, "Undo stage hunk") | ||
|
||
map("n", "<leader>hp", gs.preview_hunk, "Preview hunk") | ||
|
||
map("n", "<leader>hb", function() | ||
gs.blame_line({ full = true }) | ||
end, "Blame line") | ||
map("n", "<leader>hB", gs.toggle_current_line_blame, "Toggle line blame") | ||
|
||
map("n", "<leader>hd", gs.diffthis, "Diff this") | ||
map("n", "<leader>hD", function() | ||
gs.diffthis("~") | ||
end, "Diff this ~") | ||
|
||
-- Text object | ||
map({ "o", "x" }, "ih", ":<C-U>Gitsigns select_hunk<CR>", "Gitsigns select hunk") | ||
end, | ||
}, | ||
} |
10 changes: 10 additions & 0 deletions
10
bootstrap/config_dirs/nvim/lua/user/plugins/indent-guides.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
return { | ||
"lukas-reineke/indent-blankline.nvim", | ||
event = { "BufReadPre", "BufNewFile" }, | ||
main = "ibl", | ||
opts = { | ||
-- indent = { char = "." }, | ||
-- indent = { char = "┊" }, | ||
indent = { char = "┊" }, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
return { | ||
"kdheepak/lazygit.nvim", | ||
cmd = { | ||
"LazyGit", | ||
"LazyGitConfig", | ||
"LazyGitCurrentFile", | ||
"LazyGitFilter", | ||
"LazyGitFilterCurrentFile", | ||
}, | ||
-- optional for floating window border decoration | ||
dependencies = { | ||
"nvim-lua/plenary.nvim", | ||
}, | ||
-- setting the keybinding for LazyGit with 'keys' is recommended in | ||
-- order to load the plugin when the command is run for the first time | ||
keys = { | ||
{ "<leader>lg", "<cmd>LazyGit<cr>", desc = "Open lazy git" }, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.