JDTLS example is not quite right
- Lingua principale
- MDX
- Stelle
- 30
- Fork
- 72
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
### Checklist
- [X] I have searched through the AstroNvim docs
- [X] I have searched through the existing issues of AstroNvim
- [X] I have searched the existing issues of plugins related to this issue
### Neovim version (nvim -v)
0.9.4
### Operating system/version
NixOs 23
### Terminal/GUI
Alacritty
### Describe the bug
In the example given in https://docs.astronvim.com/recipes/advanced_lsp/#java-nvim-jdtls a new folder is created every time neovim is executed. And it concatenates the cwd so a new folder will be created by the name of the cwd even if it's not a java project.
```
local project_name = vim.fn.fnamemodify(vim.fn.getcwd(), ":p:h:t")
local workspace_dir = vim.fn.stdpath "data" .. "/site/java/workspace-root/" .. project_name
os.execute("mkdir " .. workspace_dir)
```

Additionally, `os.execute` does not work when the shell is `nushell`. Error of that actually visible for 200ms. I had to record and go frame by frame to read the error message. `vim.fn.mkdir()` probably a good alternative.

### Steps to Reproduce
.
### Expected behavior
.
### Screenshots
_No response_
### Additional Context
_No response_
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia con l'esempio Java nvim-jdtls in docs/recipes/advanced_lsp. Esamina la configurazione della directory di workspace ed eseguilo da un progetto non Java e con nushell; il lavoro è completo quando l'esempio non crea più cartelle non necessarie all'avvio e la creazione delle directory funziona con quella shell.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- lua, neovim
- Ambito
- documentation
- Tipo di issue
- Documentazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100