mirror of https://github.com/LazyVim/starter
feat: configure git sign
parent
e30113f41b
commit
793548d398
|
@ -12,6 +12,12 @@ map(
|
||||||
"<CMD>Precognition toggle<CR>",
|
"<CMD>Precognition toggle<CR>",
|
||||||
{ desc = "Toggle Precognition", noremap = true, nowait = true }
|
{ desc = "Toggle Precognition", noremap = true, nowait = true }
|
||||||
)
|
)
|
||||||
|
map(
|
||||||
|
{ "n", "v" },
|
||||||
|
"<leader>qp",
|
||||||
|
"<CMD>Telescope session-lens search_session<CR>",
|
||||||
|
{ desc = "Get session list", noremap = true, nowait = true }
|
||||||
|
)
|
||||||
|
|
||||||
-- Theme
|
-- Theme
|
||||||
map("n", "<leader>uh", "<CMD>HighlightColors Toggle<CR>", { desc = "Toggle highlighting color", nowait = true })
|
map("n", "<leader>uh", "<CMD>HighlightColors Toggle<CR>", { desc = "Toggle highlighting color", nowait = true })
|
||||||
|
|
|
@ -1,10 +1,16 @@
|
||||||
return {
|
return {
|
||||||
"f-person/git-blame.nvim",
|
-- "f-person/git-blame.nvim",
|
||||||
event = "BufReadPre",
|
-- event = "BufReadPre",
|
||||||
opts = {
|
-- opts = {
|
||||||
delay = 10,
|
-- date_format = "%x • %X",
|
||||||
date_format = "%x • %X",
|
-- -- schedule_event = "CursorHold",
|
||||||
-- schedule_event = "CursorHold",
|
-- -- clear_event = "CursorHoldI",
|
||||||
-- clear_event = "CursorHoldI",
|
-- },
|
||||||
},
|
-- "braxtons12/blame_line.nvim",
|
||||||
|
-- event = "BufReadPre",
|
||||||
|
-- opts = {
|
||||||
|
-- prefix = " • ",
|
||||||
|
-- delay = 30,
|
||||||
|
-- -- date_format = "%x • %X",
|
||||||
|
-- },
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
return {
|
||||||
|
"lewis6991/gitsigns.nvim",
|
||||||
|
enabled = true,
|
||||||
|
opts = {
|
||||||
|
current_line_blame = true,
|
||||||
|
current_line_blame_opts = {
|
||||||
|
virt_text = true,
|
||||||
|
virt_text_pos = "eol",
|
||||||
|
ignore_whitespace = false,
|
||||||
|
virt_text_priority = 100,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
|
@ -3,6 +3,9 @@ return {
|
||||||
opts = {
|
opts = {
|
||||||
defaults = {
|
defaults = {
|
||||||
preview = {
|
preview = {
|
||||||
|
session_lens = function()
|
||||||
|
require("telescope").load_extension("session-lens")
|
||||||
|
end,
|
||||||
mime_hook = function(filepath, bufnr, opts)
|
mime_hook = function(filepath, bufnr, opts)
|
||||||
local is_image = function(_filepath)
|
local is_image = function(_filepath)
|
||||||
local image_extensions = { "png", "jpg" }
|
local image_extensions = { "png", "jpg" }
|
||||||
|
|
Loading…
Reference in New Issue