nvim-lua/wishlist

Heuristically set buffer options

Open

#19 aperta il 24 apr 2021

Vedi su GitHub
 (3 commenti) (11 reazioni) (0 assegnatari) (0 fork)github user discovery
help wantedidea

Metriche repository

Star
 (249 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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.

Guida contributor