tao12345666333 / vim

My Vim configuration more Python, Javascript, Vue.js, Golang and Markdown, will add Haskell, Ruby and C/C++
http://moelove.info/vim
MIT License
566 stars 185 forks source link

Tagbar 疑问 #31

Open Timson020 opened 4 years ago

Timson020 commented 4 years ago

你好,我是vim的新手,看到你使用tarbag 希望可以得到你的帮助

tao12345666333 commented 4 years ago

具体有什么问题呢?

Timson020 commented 4 years ago

关于tagbar怎么使用在以下文件

sass

less

jsx
Timson020 commented 4 years ago
let g:tagbar_type_javascriptreact = {
    \ 'ctagstype': 'javascript',
    \ 'kinds': [
        \ 'A:arrays',
        \ 'P:properties',
        \ 'T:tags',
        \ 'O:objects',
        \ 'G:generator functions',
        \ 'F:functions',
        \ 'C:constructors/classes',
        \ 'M:methods',
        \ 'V:variables',
        \ 'I:imports',
        \ 'E:exports',
        \ 'S:styled components'
\ ]}

let g:tagbar_type_scss = {
    \ 'ctagstype': 'scss',
    \ 'kinds': [
        \ 'd:definition',
        \ 'f:functions',
        \ 'm:mixins',
        \ 'v:variables',
        \ 'c:classes',
        \ 's:selectors',
        \ 'i:identities'
    \ ],
\ }

scss 的文件是可行的

jsx的这个配置有点问题