aboutsummaryrefslogtreecommitdiff
path: root/autoload/hints/plugins.vim
diff options
context:
space:
mode:
authorJosh Rahm <rahm@google.com>2024-03-08 19:34:20 +0000
committerJosh Rahm <rahm@google.com>2024-03-08 19:34:20 +0000
commitfd5de6e1630c9e3a5966eb4101e376863676e58d (patch)
treeb6d483804abee1d6888e2e77819755877c332f12 /autoload/hints/plugins.vim
parentc8ef92cfb59f28c050b82e90fb813d25392e6664 (diff)
downloadfieldmarshal.vim-fd5de6e1630c9e3a5966eb4101e376863676e58d.tar.gz
fieldmarshal.vim-fd5de6e1630c9e3a5966eb4101e376863676e58d.tar.bz2
fieldmarshal.vim-fd5de6e1630c9e3a5966eb4101e376863676e58d.zip
Bunch of changes.
Salient changes are: Get rid of object remapping the quotes (i/a "/'/`) in favor of adding a new text object "next quotes" such as cin"/can"/etc. Added mappings in visual mode that behave like "fall", but for matching characters. So <C-v>ic will highlight the current character and all of the same character up and down. Super useful for making edits to columns of identical characters. Added a text object ic/ac that highlight all the lines that match. removed the uncommented paragraph text objects as they're broken anyway.
Diffstat (limited to 'autoload/hints/plugins.vim')
-rw-r--r--autoload/hints/plugins.vim19
1 files changed, 10 insertions, 9 deletions
diff --git a/autoload/hints/plugins.vim b/autoload/hints/plugins.vim
index e3e5a9d..db08535 100644
--- a/autoload/hints/plugins.vim
+++ b/autoload/hints/plugins.vim
@@ -16,16 +16,17 @@ endfunction
let s:WHITESPACE_OR_COMMENT='\(^\s*$\)\|\(^\s*//\)\|\(^\s*\*/\)'
function! s:java_plugin.TagLine(linenr, line) dict
- if self.last_line =~ s:WHITESPACE_OR_COMMENT
- \ && !(a:line =~ s:WHITESPACE_OR_COMMENT)
- let self.last_line = a:line
- return v:true
- endif
- let self.last_line = a:line
+ return v:true
+ # if self.last_line =~ s:WHITESPACE_OR_COMMENT
+ # \ && !(a:line =~ s:WHITESPACE_OR_COMMENT)
+ # let self.last_line = a:line
+ # return v:true
+ # endif
+ # let self.last_line = a:line
- return
- \ a:line =~ '^\s*}$' ||
- \ a:line =~ '\<\(public\|private\|protected\|class\|static\|try\|while\|for\|if\|else\|catch\)\>'
+ # return
+ # \ a:line =~ '^\s*}$' ||
+ # \ a:line =~ '\<\(public\|private\|protected\|class\|static\|try\|while\|for\|if\|else\|catch\)\>'
endfunction
function! hints#plugins#registerFt(filetype, plugin) abort