Skip to content

Conversation

@jsit
Copy link
Contributor

@jsit jsit commented Jul 17, 2020

Proof of concept for adding completion "info" for CSS properties/values.

:h complete-items

Demo:

  1. Open vim --clean
  2. Load csscomplete.vim (e.g. :so ~/.vim/bundle/csscomplete.vim/autoload/csscomplete.vim)
  3. Add "popup" to completion options (:set completeopt+=popup)
  4. Turn on filetype plugins (:filetype plugin on)
  5. Set filetype to CSS (:set ft=css)
  6. In insert mode, type al<C-X><C-O>

Omni Completion menu appears, with additional popup window showing definition of all CSS property:

Screen Shot 2020-07-17 at 11 11 56 AM

"Info" text could be sourced from VSCode

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.

1 participant