Skip to content
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

feat: Blade Directive Completion #10

Merged
merged 1 commit into from
Mar 19, 2022
Merged

Conversation

yaegassy
Copy link
Owner

DEMO (mp4)

coc-blade-directive-completion.mp4

Misc

There was a problem with indentexpr=GetBladeIndent() in vim-blade, which also worked when a completion candidate was selected.

When a particular completion candidate was selected, the completion was immediately confirmed and the indentation feature was further activated...

Problem Response:

  • Get the current indentexpr (e.g. GetBladeIndent())
  • In the event of InsertEnter, execute setlocal indentexpr=.
  • In the event of InsertLeave, execute setlocal indentexpr=${indentexpr}.
    • Restore the original indentexpr settings

@yaegassy yaegassy merged commit 87faa93 into master Mar 19, 2022
@yaegassy yaegassy deleted the feat/blade-directive-completion branch March 19, 2022 02:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant