Don't overwrite user config
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 55/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- vim
- Ambito
- tooling
Direzione di ricerca
Start by locating the Rust ftplugin setting for g:rust_recommended_style and checking how its default affects user options such as textwidth. Review the linked rust.vim issue for context. Done means the default behavior matches the requested opt-in setting, with user configuration preserved.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
I have vim.opt.textwidth = 80 in my config but opening rust files it is always set to 99. Initially, I was confused, but then found out that the rust ftplugin has some default values it sets. I can always set rust_recommended_style to false but I think it should rather be opt-in than opt-out.
For example PHP has in it's coding style reference that it must use 4 spaces for indentation^1, but the ftplugin doesn't impose any such restrictions.
Also, as I said, it's very confusing to users when suddenly their settings are overridden. I had to look into neovims source code to find the culprit.
- Rust (.rs) file doesn’t respect my space (tabstop/shiftwidth) rules
- What is changing the textwidth on rust files?
- Use user configured textwidth if it is set
Consider changing the behavior to opt-in, by having the g:rust_recommended_style default to 0.
- Lingua principale
- Vim Script
- Stelle
- 4.2k
- Fork
- 323
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di rust-lang/rust.vim
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 76/100
-
It's Dead, Jim!Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 15/100
-
Remove hard coded edition fallbackForse già presa @alerque l’ha presa 230 giorni fa. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 35/100
-
README.md syntastic to aleAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 55/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
Tutte le issue di rust-lang/rust.vim
Issue simili
-
bug documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
cqframework/vscode-cql#198 ·
-
bug documentation good first issue help wanted testing
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno
-
Show evidence time and supersede warnings in the memory inspectorForse già presa @Sinchanak-212 l’ha presa oggi. Apertaarea: ux good first issue priority: medium
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
rohit746/pdf-view.nvim#109 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
daeh/zotero-markdb-connect#187 ·