indent-bars icon indicating copy to clipboard operation
indent-bars copied to clipboard

Nested indent lines should terminate on blank lines

Open printfdebugging opened this issue 1 year ago • 0 comments

Hi, thanks for the cool package! I have this minor issue (in the image) where ether the indent line doesn't show at all the levels for blank lines, or whenever they show up, they extend fully till the next line. Like in the shared example, I would expect the inner indentation line to stop at | | user.Username), while the outer indentation line should continue till the end of the function., somewhat like the second image from neovim. image neovim's indent guides image Here's my configuration, if I am missing something which already does that

(use-package indent-bars
  :config
  (require 'indent-bars-ts) 		; not needed with straight
  :custom
  (indent-bars-treesit-support t)
  (indent-bars-treesit-ignore-blank-lines-types '("module"))
   (setq
    indent-bars-color '(highlight :face-bg t :blend 0.1)
    indent-bars-pattern "."
    indent-bars-width-frac 0.2
    indent-bars-pad-frac 0.4
    indent-bars-zigzag nil
    indent-bars-starting-column 0
    indent-bars-color-by-depth nil
    indent-bars-highlight-current-depth nil
    indent-bars-display-on-blank-lines t)
  :hook ((python-base-mode yaml-mode go-mode text-mode prog-mode) . indent-bars-mode))

printfdebugging avatar Oct 04 '24 09:10 printfdebugging