nvim-lua/wishlist

Heuristically set buffer options

Open

#19 aberto em 24 de abr. de 2021

Ver no GitHub
 (3 comments) (11 reactions) (0 assignees) (0 forks)github user discovery
help wantedidea

Métricas do repositório

Stars
 (249 stars)
Métricas de merge de PR
 (Métricas PR pendentes)

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.

Guia do colaborador