Skip to content

v0.0.1

Choose a tag to compare

@markosnarinian markosnarinian released this 22 Jun 08:45
· 12 commits to main since this release

Full Changelog: https://github.com/markosnarinian/fold-logging.nvim/commits/v0.0.1

Initial release of fold-logging.nvim.

Features

  • Automatically folds logging and debug-print statements in Neovim.
  • Preserves existing expr folding for functions, classes, and blocks.
  • Composes with Treesitter folds, LSP folds, and nvim-origami.
  • Supports Python out of the box.
  • Detects Python logging calls such as:
  • logger.debug(...)
  • logger.info(...)
  • logger.warning(...)
  • logger.error(...)
  • logger.exception(...)
  • logging.log(...)
  • Detects Python debug-print calls:
  • print(...)
  • pprint(...)
  • Avoids folding logging setup calls such as:
  • logging.basicConfig(...)
  • logging.getLogger(...)
  • Supports custom languages through configurable Lua patterns.
  • Provides manual commands:
  • :FoldLoggingFold
  • :FoldLoggingUnfold
  • :FoldLoggingToggle
  • :FoldLoggingRefresh
  • :FoldLoggingList
  • :FoldLoggingEnable
  • :FoldLoggingDisable
  • Provides a Lua API for setup, folding, unfolding, toggling, refreshing, listing, detection, enabling, and disabling.

Configuration

  • enable
  • auto_fold
  • fold_single_line
  • min_lines
  • notify
  • base_foldexpr
  • languages

Documentation

  • Added installation instructions for lazy.nvim.
  • Added usage examples, configuration docs, language customization docs, and API reference.
  • Added MIT license.