git stuff and tab helpers
This commit is contained in:
parent
bbe1cbdd2d
commit
ebfe0e13c7
6 changed files with 21 additions and 9 deletions
|
@ -19,10 +19,11 @@ return {
|
|||
delay = 0,
|
||||
ignore_whitespace = false,
|
||||
},
|
||||
-- on_attach = function()
|
||||
-- local gs = package.loaded.gitsigns
|
||||
-- set_nmap('<leader>tb', gs.toggle_current_line_blame)
|
||||
-- end
|
||||
on_attach = function()
|
||||
vim.keymap.set("n", "<leader>gb", function()
|
||||
package.loaded.gitsigns.toggle_current_line_blame()
|
||||
end, { desc = "Toggle git blame on current line" })
|
||||
end
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -93,6 +94,9 @@ return {
|
|||
height = 16,
|
||||
},
|
||||
},
|
||||
}
|
||||
},
|
||||
keys = {
|
||||
{ "<leader>gd", "<cmd>DiffviewOpen<cr>", desc = "Opens git diff view." },
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
function prereqs()
|
||||
local function prereqs()
|
||||
local output = vim.fn.system({
|
||||
"which",
|
||||
"lazygit",
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
function prereqs()
|
||||
local function prereqs()
|
||||
local output = vim.fn.system({
|
||||
"which",
|
||||
"rust-analyzer",
|
||||
|
@ -172,7 +172,7 @@ return {
|
|||
dependencies = { "nvim-telescope/telescope.nvim" },
|
||||
config = function()
|
||||
local config = require("lspconfig")
|
||||
local util = require("lspconfig/util")
|
||||
-- local util = require("lspconfig/util")
|
||||
local mason_lspconfig = require("mason-lspconfig")
|
||||
local cmp = require("cmp")
|
||||
local luasnip = require("luasnip")
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
function prereqs()
|
||||
local function prereqs()
|
||||
local output_cspell = vim.fn.system({
|
||||
"which",
|
||||
"cspell",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue