Releases: rxtsel/template-string.nvim
v0.2.0
Release v0.2.0
Changes
-
Automatic Configuration: The plugin now configures itself automatically upon loading, removing the need for manual setup. This simplifies the usage and integration of the plugin.
Previous Configuration:
{ "rxtsel/template-string.nvim", event = "BufReadPost", dependencies = { "nvim-lua/plenary.nvim", }, config = function() require("template-string").setup() end, }
New Configuration:
{ "rxtsel/template-string.nvim", event = "BufReadPost", dependencies = { "nvim-lua/plenary.nvim", "nvim-treesitter/nvim-treesitter" } }
-
Default Enabled Filetypes: The plugin now supports
tsx
,jsx
,ts
, andjs
filetypes by default, eliminating the need for additional configuration. -
Integration with
nvim-treesitter
: The plugin now utilizesnvim-treesitter
to accurately detect and manipulate JSX/TSX nodes, enhancing its functionality and precision.
Breaking Changes
-
Removed Manual Setup: The previous method of passing configuration parameters to
setup()
is no longer supported. The plugin now initializes automatically.Removed Configuration:
-- Default configuration require('template-string').setup({ jsx_brackets = true, -- Wrap template literals with {``} inside JSX/TSX components })
New Behavior: The plugin now automatically wraps template literals with
{``}
inside JSX/TSX components without requiring additional setup.
Fixes
- Bug Fixes: Various bugs have been addressed to improve the stability and functionality of the plugin.