-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
breaking changes & new features: #3
Comments
6a00aba - Added block comments, and removing outermost comment on cursor this is based on current line instead of cursor position and its really buggy on nested comments so it needs to be improved, it will work just fine in humane files tho |
35b7a0a - Externalized function all you need to know: UtilitiesGet a table with comment beginning and end Using this plugin custom tables and ts-context-commentstring it also updates the commentstring Useful for custom utility functions that need accurate comment detection -- you can pass "block", and it will *try* to get block comments
local comment = require("SingleComment").GetComment() |
20a3458 - Using treesitter to get the commenstring TS => tree-sitter i think TSCC may not be necessary anymore but all that stuff is way more complicated than it should be so i "pasted" part of echasnovski mini.comment function before the current comment detection since this plugin heuristics expects bad commentstrings after the detection it should not break, if TS fails context-commentstring is still used in nil/empty results so essentially nothing changed i will dogfood this without using TSCC but its use is very specific so i will probably not notice it |
7372a50 - Remove TS stuff breaks more than it helps, failed to comment a html script tag and there is no reliable way to replace non nil/empty ts garbage commenstrings |
922c5e5 to efbe102 - Use all you need to know: visual block mode now comments from the starting column to the end of the line on line commenting and the specified block on block commenting this allows for more manual control when multi line commenting a specific section of code but it is not intelligent and does not toggle or uncomment at all |
e0be262 GetComment() will not mess with your neovim |
5149790 - paste as a comment, accounting for indentation really nice to paste documentation copied from the browser |
Removed
vim.g.SC_ts_context
variable, ts_context_commentstring is used automaticallyThe text was updated successfully, but these errors were encountered: