archived: having this for weeks, i have never used it once. it's useless to me.
an example that tries to fix/complete the end for current context/position.
- be pragmatic, guarantee no 100% correctness
- every pattern is hardcoded, as i know nothing about queries of treesitter
- be stupid and lazy, it must be triggered by user
- treesitter parsers are good, avoid string manipulations ASAP
- it is not stable
- its implementation is ugly
lua: multiline blocks
- do -> do | end
- for.. -> for..do | end
- for..in.. -> for..do | end
- if.. -> if..then | end
- if..then -> if..then | end
- for..do -> for..do | end
general: inline pairs
- '
- "
- (
- [
- {
- [[
- neovim 0.9.* with treesitter
- haolian9/squirrel.nvim
- haolian9/infra.nvim
my personal config:
-- after/ftplugin/lua.vim
inoremap <buffer> <c-;> <cmd>lua require'fixends'.lua()<cr>
- python
- zig