Update gitsigns

This commit is contained in:
hlstwizard 2026-04-02 16:47:55 +08:00
parent 12a46ad57b
commit 0a6c31b324
2 changed files with 4 additions and 1 deletions

View File

@ -127,7 +127,7 @@ vim.o.ignorecase = true
vim.o.smartcase = true vim.o.smartcase = true
-- Keep signcolumn on by default -- Keep signcolumn on by default
vim.o.signcolumn = 'yes' vim.o.signcolumn = 'yes:1'
-- Decrease update time -- Decrease update time
vim.o.updatetime = 250 vim.o.updatetime = 250

View File

@ -10,6 +10,9 @@ return {
---@type Gitsigns.Config ---@type Gitsigns.Config
---@diagnostic disable-next-line: missing-fields ---@diagnostic disable-next-line: missing-fields
opts = { opts = {
watch_gitdir = { follow_files = true },
attach_to_untracked = true,
update_debounce = 100,
on_attach = function(bufnr) on_attach = function(bufnr)
local gitsigns = require 'gitsigns' local gitsigns = require 'gitsigns'