Closed happy-dude closed 4 years ago
Happy #hacktoberfest 😄 ?
Won't this module change cause the breakage a again for the short moment when users install the update until they restart vim?
Won't this module change cause the breakage a again for the short moment when users install the update until they restart vim?
For me, the breakage only happens when I attempt to use the modules and/or enable them. nvim starts fine with the modules disabled. highlight_current_scope
(when enabled) was causing a runtime path issue everytime characters were changed that is being reported at https://github.com/nvim-treesitter/nvim-treesitter/issues/565.
EDIT: re: breakage for users who are caught between an loaded outdated plugin and updated one on disk Yes, will likely error until neovim is restarted.
you only have to fix these two lines.
.
-> -
Reason why I changed more than that was to make it consistent with how https://github.com/nvim-treesitter/nvim-treesitter-textobjects/tree/master/lua laid out the modules.
Let's let @steelsojka decide. I kept the file structure to not have to rename anything and be able to have both plugins installed in the transition period.
If the desire is to maintain the nvim-treesitter-refactor/lua/nvim-treesitter-refactor/*.lua
directory structure, then it would also make sense to change https://github.com/nvim-treesitter/nvim-treesitter-textobjects/tree/master/lua from
lua/nvim-treesitter/textobjects/
-> lua/nvim-treesitter-textobjects/
?
Suggesting that only as a consistency thing.
The disruption to users seems minor to me considering
highlight_current_scope
module in HEAD only happens when enable = true
is set for it, since it is disabled by default@Happy-Dude I think we want to have a separate namespace so it doesn't collide with the main repo.
Okay yeah that makes sense; what would you guys like me to do?
I can wait for @steelsojka or close/edit this PR with the 2-lined changes in highlight_current_scope
and make the changes for the textobjects repo?
EDIT: wording
I think is fine changing those two lines so everything starts working again, we can decide if we want to change the structure later :)
Sounds good to me @stsewd -- created https://github.com/nvim-treesitter/nvim-treesitter-refactor/pull/4
Can close this PR 👍
@Happy-Dude Thanks for this. Sorry I didn't get back in a meaningful time. I will close this PR. Thanks for you contribution! I'm gonna close this in place of your other PR.
ref: nvim-treesitter/nvim-treesitter/issues/565
Mirror https://github.com/nvim-treesitter/nvim-treesitter-textobjects directory structure
lua/nvim-treesitter/refactor
(instead oflua/nvim-treesitter-refactor
)