GNU bug report logs -
#77094
31.0.50; yaml-ts-mode does not indent after yaml mapping keys
Previous Next
Full log
Message #26 received at 77094 <at> debbugs.gnu.org (full text, mbox):
I also have a question regarding one moment. Some completions of yaml schemas for yaml-language-server are multiline. For instance, when completing 'env' in a container specification using the Kubernetes schema:
```
spec:
containers:
- name: postgres-container
image: postgres:16
env
```
It completes it this way:
```
spec:
containers:
- name: postgres-container
image: postgres:16
env:
- name:
```
But that's the ideal situation with correct indentation. In reality it does that this way:
```
spec:
containers:
- name: postgres-container
image: postgres:16
env:
- name:
```
Should this situation be handled by the language mode or maybe by the completion system and the language mode together?
I use this configuration for eglot:
```
(setq-default eglot-workspace-configuration
'((yaml
(schemas . ((kubernetes . ["*/templates/*.yaml"
"*/kubernetes/*.yaml"
"*/templates/*.yml"]))))))
```
This bug report was last modified 80 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.