vim-sleuth
vim-sleuth copied to clipboard
sleuth.vim: Heuristically set buffer options
vim-sleuth fails to detect indent settings in a file that does not have a filetype (eg, a file with a custom extension). **Expected Behavior**: Detect indent settings based on the...
I have a Python file where the Python is indented with 4 spaces and an inner multiline literal for sql is indented using 2 spaces: ```py def foobar(): """Blah blah...
One common case of mixed indentation is when a file is written with mostly spaces and then unwittingly a few tabs with tabstop = shiftwidth < 8. To the author...
I just found that vim-sleuth will set shiftwidth to 36 with the below example: ```cpp #include #include template std::vector get_cartesian_tree(std::span sequence, auto &&cmp = Cmp{}) { std::vector parents(sequence.size()); int a;...
Sleuth often gets "indentless arrays" formatting of yaml wrong. This is a pretty standard formatting option with Kubernetes manifests. This is a pretty common example of yaml syntax that Sleuth...
The body of a list item frequently extends for multiple lines. With `n` in `'formatoptions'`, the continuation lines of the body are not indented according to `'tabstop`' or '`shiftwidth`'; they...
In my .vimrc, I set `'tabstop'` to 4. This normally applies to any new or existing files I open. However, when opening a file that mixes spaces and tabs for...
I'm having this issue where without changing anything in my init.lua the spaces get place are 2 instead of 4