mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-02-04 16:41:43 +05:30
chore: README formatting & nvim keymap changes
This commit is contained in:
14
README.md
14
README.md
@@ -39,16 +39,16 @@ Any package not available are *skipped*.
|
||||
- aka, pending installations that I gave up automating.
|
||||
|
||||
- All Distros:
|
||||
- Appimagelauncher: https://github.com/TheAssassin/AppImageLauncher/releases
|
||||
- Zoho Mail: https://downloads.zohocdn.com/zmail-desktop/linux/
|
||||
- Zoho Workdrive: https://www.zoho.com/workdrive/desktop-sync.html
|
||||
- Jetbrains-Toolbox: https://www.jetbrains.com/toolbox-app/
|
||||
- Sublime-Text: https://www.sublimetext.com/docs/linux_repositories.html
|
||||
- Appimagelauncher: <https://github.com/TheAssassin/AppImageLauncher/releases>
|
||||
- Zoho Mail: <https://downloads.zohocdn.com/zmail-desktop/linux/>
|
||||
- Zoho Workdrive: <https://www.zoho.com/workdrive/desktop-sync.html>
|
||||
- Jetbrains-Toolbox: <https://www.jetbrains.com/toolbox-app/>
|
||||
- Sublime-Text: <https://www.sublimetext.com/docs/linux_repositories.html>
|
||||
- Debian & Ubuntu:
|
||||
- Add non-free and backport sources, then run the `install-os-packges.sh` again
|
||||
- Ulauncher: https://ulauncher.io/#Download
|
||||
- Ulauncher: <https://ulauncher.io/#Download>
|
||||
- Debian:
|
||||
- Dotnet8: https://learn.microsoft.com/en-us/dotnet/core/install/linux-scripted-manual#scripted-install
|
||||
- Dotnet8: <https://learn.microsoft.com/en-us/dotnet/core/install/linux-scripted-manual#scripted-install>
|
||||
|
||||
## Test
|
||||
|
||||
|
||||
@@ -45,6 +45,8 @@ return {
|
||||
on_attach = function(bufnr)
|
||||
local gs = package.loaded.gitsigns
|
||||
|
||||
gs.toggle_current_line_blame() -- git blame line
|
||||
|
||||
local function map(mode, l, r, opts)
|
||||
opts = opts or {}
|
||||
opts.buffer = bufnr
|
||||
@@ -72,6 +74,9 @@ return {
|
||||
return "<Ignore>"
|
||||
end, { expr = true, desc = "Previous Git hunk" })
|
||||
|
||||
-- Text object
|
||||
map({ "o", "x" }, "ih", ":<C-U>Gitsigns select_hunk<CR>", { desc = "Git: Visual select hunk" })
|
||||
|
||||
-- Staging
|
||||
-- Actions
|
||||
map("n", "<leader>gr", gs.reset_hunk, { desc = "Git: reset hunk" })
|
||||
@@ -86,19 +91,12 @@ return {
|
||||
map("v", "<leader>gsH", function()
|
||||
gs.stage_hunk({ vim.fn.line("."), vim.fn.line("v") })
|
||||
end, { desc = "Git: Visual Stage Hunk" })
|
||||
map("v", "<leader>gsR", function()
|
||||
gs.reset_hunk({ vim.fn.line("."), vim.fn.line("v") })
|
||||
end, { desc = "Git: Visual Reset Hunk" })
|
||||
|
||||
-- normal mode
|
||||
map("n", "<leader>gp", gs.preview_hunk, { desc = "Git: Preview hunk" })
|
||||
|
||||
-- Toggles
|
||||
map("n", "<leader>gtb", gs.toggle_current_line_blame, { desc = "Git: toggle blame line" })
|
||||
map("n", "<leader>gtd", gs.toggle_deleted, { desc = "Git: toggle show deleted" })
|
||||
|
||||
-- Text object
|
||||
map({ "o", "x" }, "ih", ":<C-U>Gitsigns select_hunk<CR>", { desc = "Git: Visual select hunk" })
|
||||
map("n", "<leader>gB", gs.toggle_current_line_blame, { desc = "Git: Toggle blame-line" })
|
||||
end,
|
||||
},
|
||||
},
|
||||
|
||||
@@ -186,10 +186,9 @@ return {
|
||||
|
||||
-- Neovim Things
|
||||
vim.keymap.set("n", "<leader>ns", require("telescope.builtin").search_history, { desc = "Search History" })
|
||||
vim.keymap.set("n", "<leader>nn", require("telescope.builtin").help_tags, { desc = "Search NeoVIM Help" })
|
||||
vim.keymap.set("n", "<leader>nh", require("telescope.builtin").help_tags, { desc = "Search NeoVIM Help" })
|
||||
vim.keymap.set("n", "<leader>nc", require("telescope.builtin").command_history, { desc = "Command History" })
|
||||
vim.keymap.set("n", "<leader>nC", require("telescope.builtin").colorscheme, { desc = "Colorschemes (with preview)" })
|
||||
vim.keymap.set("n", "<leader>nn", "<cmd>Telescope notify<cr>", { desc = "Past notifications" })
|
||||
|
||||
-- Help
|
||||
vim.keymap.set("n", "<leader>hk", require("telescope.builtin").keymaps, { desc = "Help: NeoVIM Keymaps" })
|
||||
|
||||
Reference in New Issue
Block a user