Skip to content
This repository has been archived by the owner on Jul 29, 2023. It is now read-only.

pangloss vim-javascript plugin imcompability #154

Closed
cjnucette opened this issue Apr 22, 2016 · 10 comments
Closed

pangloss vim-javascript plugin imcompability #154

cjnucette opened this issue Apr 22, 2016 · 10 comments

Comments

@cjnucette
Copy link

Hi, when i enable the plugin this happens

screenshot from 2016-04-22 15-43-20

This only happens with inline javascript in html file.

my .vimrc:
" indentLine
let g:indentLine_enable=1
let g:indentLine_fileType=['javascript', 'html', 'css', 'scss', 'typescript']
let g:indentLine_color_term=239
let g:indentLine_color_gui='#A4E57E'
let g:indentLine_char='┊'

@xaviervalarino
Copy link

I am also using pangloss-javascript plugin and have been experiencing this issue.
js-no-show-indent

@Yggdroot
Copy link
Owner

@cjnucette Does those lines' indentation is using tabs?
@xaviervalarino because default value of ·g:indentLine_indentLevel· is 10. You can set it to 20.

@xaviervalarino
Copy link

xaviervalarino commented Apr 25, 2016

@Yggdroot Thanks! this solved my issue. Is there any way to get this plugin to detect a files indent settings like detectIndent?

@cjnucette
Copy link
Author

@Yggdroot No, white spaces.

This are the relevant lines in my .vimrc:

" Use spaces instead of tabs
set expandtab

" Be smart when using tabs ;)
set smarttab

" 1 tab == 4 spaces
set shiftwidth=4
set tabstop=4

" Linebreak on 500 characters
set lbr
set tw=500

set ai "Auto indent
set si "Smart indent
set wrap "Wrap lines

@cjnucette cjnucette reopened this Apr 25, 2016
@cjnucette
Copy link
Author

Sorry closed by error

@Yggdroot
Copy link
Owner

Could you show me the sample file with text but not picture?

@cjnucette
Copy link
Author

cjnucette commented Apr 25, 2016

Sure:

 <!-- 2. Configure SystemJS  -->
    <script>
        System.config({
            packages: {
                app: {
                    format: 'register',
                    defaultExtension: 'js'
                }
            }
        });
        System.import('app/main')
            .then(null, console.error.bind(console));
    </script>

@Yggdroot
Copy link
Owner

This is a conflict with vim-javascript plugin. Can only be solved by vim-javascript plugin.

@sassanh
Copy link

sassanh commented Sep 1, 2016

@Yggdroot What's the conflict?

@jalcine
Copy link

jalcine commented Dec 14, 2017

Yeah, that message was a bit cryptic. How is this an issue on the vim-javascript side?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants