1.0.2 • Published 4 years ago

coc-style-helper v1.0.2

Weekly downloads
6
License
MIT
Repository
-
Last release
4 years ago

coc-style-helper

Write styles easier in JSX, provide a powerful auxiliary development functions in style files like CSS, SASS, forked from Iceworks Style Helper

Install

:CocInstall coc-style-helper

Features

JSX inline style automatic completion

JSX style variable assignment

JSX classname automatic completion

JSX classname value preview and define jump

Css classname automatic completion

Scss/Sass automatic completion

Usage

" GoTo code navigation.
nmap <silent> gd <Plug>(coc-definition)
nmap <silent> gy <Plug>(coc-type-definition)
nmap <silent> gi <Plug>(coc-implementation)
nmap <silent> gr <Plug>(coc-references)

" Use K to show documentation in preview window.
nnoremap <silent> K :call <SID>show_documentation()<CR>

function! s:show_documentation()
  if (index(['vim','help'], &filetype) >= 0)
    execute 'h '.expand('<cword>')
  else
    call CocAction('doHover')
  endif
endfunction

License

MIT


This extension is created by create-coc-extension