Disable git-gutter on remote files

This commit is contained in:
Adam Goldsmith 2023-01-01 22:04:30 -05:00
parent 28c842bf00
commit 2e668a314b

View File

@ -1078,6 +1078,14 @@
:config :config
(global-git-gutter-mode t) (global-git-gutter-mode t)
(setq git-gutter:update-interval 0.2) (setq git-gutter:update-interval 0.2)
;; Disable git-gutter on remote files
(defun git-gutter--turn-on ()
(when (and (buffer-file-name)
(not (memq major-mode git-gutter:disabled-modes))
(not (file-remote-p (buffer-file-name))))
(git-gutter-mode +1)))
(use-package git-gutter-fringe :ensure :demand (use-package git-gutter-fringe :ensure :demand
:config :config
(define-fringe-bitmap 'git-gutter-fr:added [224] nil nil '(center repeated)) (define-fringe-bitmap 'git-gutter-fr:added [224] nil nil '(center repeated))