nvim-lua/wishlist

Heuristically set buffer options

Open

#19 opened on Apr 24, 2021

View on GitHub
 (3 comments) (11 reactions) (0 assignees) (0 forks)github user discovery
help wantedidea

Repository metrics

Stars
 (249 stars)
PR merge metrics
 (PR metrics pending)

Description

What? This plugin automatically adjusts 'shiftwidth' and 'expandtab' heuristically based on the current file.

Why? When you work with several projects, it is not very convenient to manually set formatting parameters. It would be nice to be able to define these options automatically.

Potential existing implementations: This functionality is provided by default in VSCode. There is also a great plugin https://github.com/tpope/vim-sleuth, but it is written in Vimscript and can slow down the editor.

Potential pitfalls: It would be nice to implement this feature async.

Contributor guide