Skip to content

Tabstop is set to 8 for javascript files (.js, .es6) #654

@tchar

Description

@tchar

Does this bug happen when you install plugin without vim-polyglot?

No

Describe the bug:

In vim for js files (also es6, did not try all of them) tabstop is forced to 8.

I also tried setting let g:polyglot_disabled = ['javascript'] before the plugin loads and it still forces my tabstop to 8.
If the polyglot_disabled option works for javascript this means that tabstop is forced by polyglot.

According to this they don't force any tabstop so it should be from polyglot
With .py files tabstop is forced to 4 (not set) (which is expected).

To Reproduce:

In case you need it

Vim version: version 8.1.2269
OS: Ubuntu 20.04

Here is the .vimrc that can reprodue the issue

set nocompatible
set tabstop=4

" The following line does not resolve the issue so I commented it out
"let g:polyglot_disabled = ['javascript']

call plug#begin('~/.vim/plugged')

Plug 'sheerun/vim-polyglot'
"Plug 'pangloss/vim-javascript'

call plug#end()

Swaping the plugins issue is no more and tabstop is back to 4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions