Skip to content

Commit

Permalink
tweak(prog): make treesitter-context obsolete
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed May 17, 2024
1 parent b2f9c1d commit f34ef7e
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 18 deletions.
18 changes: 0 additions & 18 deletions modules/me-prog.el
Original file line number Diff line number Diff line change
Expand Up @@ -389,24 +389,6 @@ Fall back to the default `citre--project-root'."
(use-package eglot-booster
:straight (:host github :repo "jdtsmith/eglot-booster"))

(use-package treesitter-context
:straight (:host github :repo "zbelial/treesitter-context.el")
:when (+emacs-features-p 'tree-sitter)
:commands treesitter-context-mode
:custom
(treesitter-context-idle-time 0.5)
:config
(setq treesitter-context-background-color "#EEEEEE"
treesitter-context-border-color "#000000"))

(use-package treesitter-context-fold
:hook (prog-mode . treesitter-context-fold-mode)
:when (+emacs-features-p 'tree-sitter)
:init
(+fn-inhibit-messages! treesitter-context-fold-mode)
:config
(require 'treesitter-context))

(use-package breadcrumb
:straight t)

Expand Down
33 changes: 33 additions & 0 deletions modules/obsolete/me-treesitter-context.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
;;; me-treesitter-context.el --- Treesit-based context and code folding -*- lexical-binding: t; -*-

;; Copyright (C) 2022-2024 Abdelhak Bougouffa

;; Author: Abdelhak Bougouffa (rot13 "nobhtbhssn@srqbencebwrpg.bet")

;;; Commentary:

;;; Code:


(use-package treesitter-context
:straight (:host github :repo "zbelial/treesitter-context.el")
:when (+emacs-features-p 'tree-sitter)
:commands treesitter-context-mode
:custom
(treesitter-context-idle-time 0.5)
:config
(setq treesitter-context-background-color "#EEEEEE"
treesitter-context-border-color "#000000"))

(use-package treesitter-context-fold
:hook (prog-mode . treesitter-context-fold-mode)
:when (+emacs-features-p 'tree-sitter)
:init
(+fn-inhibit-messages! treesitter-context-fold-mode)
:config
(require 'treesitter-context))


(provide 'obsolete/me-treesitter-context)

;;; me-treesitter-context.el ends here

0 comments on commit f34ef7e

Please sign in to comment.