I am not exactly sure whether this is an issue with coc-phpls or intelephense.
I have added the following configuration for enabling the function text object. But when I try to select inside a function with vif, the opening brace is included with the selection.
If the opening brace is on the same line as the function header, then it is working correctly.
" Create mappings for function text object, requires document symbols feature of languageserver.
xmap if <Plug>(coc-funcobj-i)
xmap af <Plug>(coc-funcobj-a)
omap if <Plug>(coc-funcobj-i)
omap af <Plug>(coc-funcobj-a)
To Reproduce
Steps to reproduce the behavior:
Go to '...'
Click on '....'
Scroll down to '....'
See error
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
Desktop (please complete the following information):
Describe the bug
I am not exactly sure whether this is an issue with
coc-phpls
orintelephense
.I have added the following configuration for enabling the function text object. But when I try to select inside a function with
vif
, the opening brace is included with the selection.If the opening brace is on the same line as the function header, then it is working correctly.
To Reproduce Steps to reproduce the behavior:
Expected behavior A clear and concise description of what you expected to happen.
Screenshots
Desktop (please complete the following information):