This pull request introduces several significant enhancements and updates to the Typewriter.nvim plugin, focusing on expanding the support for various filetypes and languages. The updates include adding new significant node types for centering and navigation within code blocks, as well as improving the documentation.
Changes
Added Support for New Languages: Introduced significant node types for the following languages to improve centering behavior:
OCaml
Zig
C
C#
C++
Swift
Dart
JSON
CSS
YAML
Lua
Rust
Go
Python
JavaScript
Bash
Documentation Enhancements:
Updated the README to include a new section on supported filetypes and languages. This section encourages users to propose additional languages via issues if they don't see their desired filetype supported.
Enhanced the changelog to reflect the latest changes and removed duplicate entries for better clarity.
Gitignore Update: Added test files to the .gitignore to prevent them from being tracked in the repository.
Additions and Deletions
251 additions and 18 deletions across multiple files.
If you don't see your filetype listed, we still encourage you to download the plugin. The common significant blocks section supports many filetypes by default. However, if the plugin does not work as expected even with Treesitter installed and set up, please open an issue on our GitHub issues page.
Encouragement for Contributions
We invite the community to propose new languages or filetypes via opening an issue or a pull request. Your contributions are valuable in making Typewriter.nvim even more robust and versatile.
PR Description
Overview
This pull request introduces several significant enhancements and updates to the Typewriter.nvim plugin, focusing on expanding the support for various filetypes and languages. The updates include adding new significant node types for centering and navigation within code blocks, as well as improving the documentation.
Changes
Added Support for New Languages: Introduced significant node types for the following languages to improve centering behavior:
Documentation Enhancements:
Gitignore Update: Added test files to the
.gitignore
to prevent them from being tracked in the repository.Additions and Deletions
.gitignore
: 1 additionCHANGELOG.md
: 33 additions, 1 deletionREADME.md
: 2 additions, 2 deletionsdoc/typewriter.txt
: 189 additions, 15 deletionslua/typewriter/utils/center_block_config.lua
: 134 additionsInstructions for Users
If you don't see your filetype listed, we still encourage you to download the plugin. The common significant blocks section supports many filetypes by default. However, if the plugin does not work as expected even with Treesitter installed and set up, please open an issue on our GitHub issues page.
Encouragement for Contributions
We invite the community to propose new languages or filetypes via opening an issue or a pull request. Your contributions are valuable in making Typewriter.nvim even more robust and versatile.