zig.vim icon indicating copy to clipboard operation
zig.vim copied to clipboard

Allow disabling default style settings

Open DaQueenJodi opened this issue 2 years ago • 1 comments

Plugins like python.vim, rust.vim etc also set the tabstop, shiftwidth, etc for the recommended styling of the language but they all have a (i.e) g:python_recommended_style variable you can set to false to disable that I think it would be a good idea to do the same here since I (and I'm sure many others) don't like plugins changing the indentation spacing and other settings

DaQueenJodi avatar Feb 22 '23 16:02 DaQueenJodi

Im not a vim plugin developer but this is how rust.vim does it, seems relatively simple:

if get(g:, 'rust_recommended_style', 1)
    let b:rust_set_style = 1
    setlocal shiftwidth=4 softtabstop=4 expandtab
    setlocal textwidth=99
endif

DaQueenJodi avatar Feb 22 '23 16:02 DaQueenJodi