feat: configure git sign

pull/98/head
fm39hz-laptop 2024-07-15 13:54:09 +07:00
parent e30113f41b
commit 793548d398
4 changed files with 36 additions and 8 deletions

View File

@ -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 })

View File

@ -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",
-- },
} }

View File

@ -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,
},
},
}

View File

@ -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" }