Skip to content

translated intro, install, quick start and meet the team pages in Italian #227

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,19 @@ const config = {
// metadata like html lang. For example, if your site is Chinese, you may want
// to replace "en" with "zh-Hans".
i18n: {

defaultLocale: "en",
locales: ["en", "de", "es"],
locales: ["en", "de", "es", "it"],
localeConfigs: {
en: {
label: "English",
},
de: {
label: "Deutsch",
},
it: {
label: "Italiano",
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

forgot a ,

es: {
label: "Español",
},
Expand Down Expand Up @@ -78,7 +82,7 @@ const config = {
],
primaryCTA: {
text: "Install",
to: "/docs/installation",
to: "docs/installation",
},
// secondary call to action is optional
secondaryCTA: {
Expand Down Expand Up @@ -168,6 +172,10 @@ const config = {
type: "localeDropdown",
position: "right",
},
{
type: 'localeDropdown',
position: 'right',
},
Comment on lines +175 to +178
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove this again

],
},
prism: {
Expand Down
22 changes: 22 additions & 0 deletions i18n/it/docusaurus-plugin-content-docs/current/01-introduction.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
title: Introduzione
---

<img src="/img/lunarvim_logo.png" alt="Logo di LunarVim" />

# Introduction

LunarVim è un IDE layer opinionato, estendibile e veloce per Neovim >= 0.7.0. LunarVim trae vantaggio dalle ultimissime funzionalità di Neovim come [Treesitter](https://tree-sitter.github.io/tree-sitter/) e il supporto per il [Language Server Protocol](https://en.wikipedia.org/wiki/Language_Server_Protocol).


## Opinionato

LunarVim viene fornito con una configurazione predefinita sensata che ti permette di costruirci sopra. Le funzionalità includono auto completamento, terminale integrato, esploratore di file, fuzzy finder, LSP, linting, formattazione e debugging.

## Estendibile

Solo perché LunarVim ha un'opinione non vuol dire che devi condividerla. Ogni componente aggiuntivo incorporato può essere acceso o spento nel file `config.lua`. Questo è il punto dove potrai aggiungere i tuoi componenti aggiuntivi, definire le scorciatoie da tastiera, autocomandi, associazioni con il tasto leader e tutte le altre impostazioni personalizzate.

## Veloce

LunarVim carica pigramente i componenti aggiuntivi dove possibile per massimizzare la velocità. I componenti aggiuntivi disattivati inoltre non diminuiranno la velocità visto che la lista dei componenti aggiuntivi viene compilata solo con quelli attivi. Questa strategia permette a LunarVim di non dover scegliere tra funzionalità e velocità.
125 changes: 125 additions & 0 deletions i18n/it/docusaurus-plugin-content-docs/current/02-installation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
# Installazione

## Prerequisiti

- Assicurati di aver installato l'ultima versione di [`Neovim v0.7.2+`](https://github.com/neovim/neovim/releases/latest).
- Assicurati di aver installato `git`, `make`, `pip`, `npm`, `node` e `cargo` nel tuo sistema.
- [Risolvi i permessi `EACCES` quando installi i pachetti globalmente](https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally) per evitare errori quando installi pachetti con npm.

# Installare

Ci sono diversi modi per installare LunarVim.

## Stabile

Nessun allarme o sorpresa:

```bash
bash <(curl -s https://raw.githubusercontent.com/lunarvim/lunarvim/master/utils/installer/install.sh)
```

## Rolling

Tutte le nuove funzionalità con tutti i nuovi bug:

```bash
LV_BRANCH=rolling bash <(curl -s https://raw.githubusercontent.com/lunarvim/lunarvim/rolling/utils/installer/install.sh)
```

Puoi anche usare questo helper script per ottenere l'ultimo binario di neovim:

```bash
bash <(curl -s https://raw.githubusercontent.com/LunarVim/LunarVim/rolling/utils/installer/install-neovim-from-release)
```

Assicurati di controllare la sezione di [risoluzione degli errori](./troubleshooting/README.md) se riscontri dei problemi.

## Suggerimenti per gli utenti di WSL2

Quando usi LunarVim dentro WSL2, ci sono alcune cose di cui dovresti essere a conoscenza:

1. Evita di usare LunarVim dentro la cartella di Windows, es. `/mnt/c`, a causa di problemi di prestazioni del filesystem, vedi [WSL#4197](https://github.com/microsoft/WSL/issues/4197).
2. Alcuni utenti di WSL2 hanno riscontrato che ottenere gli appunti potrebbe essere lento. Una soluzione temporanea è chiamare il gestore degli appunti dal lato di Windows. Neovim cerca di usare [win32yank.exe](https://github.com/equalsraf/win32yank) se è disponibile. Dunque installalo e imposta il valore di `clipboard` esplicitamente:

```lua
if vim.fn.has "wsl" == 1 then
vim.g.clipboard = {
copy = {
["+"] = "win32yank.exe -i --crlf",
["*"] = "win32yank.exe -i --crlf",
},
paste = {
["+"] = "win32yank.exe -o --lf",
["*"] = "win32yank.exe -o --lf",
},
}
end

```

3. Alcuni utenti di WSL2 riscontrano che aprire i buffer all'avvio necessita di molto tempo.
Una possibile soluzione è aggiungere quanto segue al tuo file `/etc/wsl.conf`:

```ini
[automount]
# Impostare questo a vero monterà automaticamente i dischi fissi (C:/ o D:/) con DrvFs sotto la cartella radice impostata sotto. Impostarlo a falso significa che i dischi non saranno montati automaticamente, ma dovranno essere montati a mano o con fstab.
enabled = false

# Imposta il file `/etc/fstab` per essere processato quando una distribuzione WSL viene lanciata.
mountFsTab = false

# Imposta se WSL supporta processi interoperativi come lanciare app Windows e aggiungere variabili di percorso. Impostare questi valori a falos bloccherà il lancio di processi Windows e bloccherà l'aggiunta delle variabili di ambiente $PATH.
[interop]
enabled = false
appendWindowsPath = false
```

Riferimento: [WSL automount settings](https://docs.microsoft.com/en-us/windows/wsl/wsl-config#automount-settings)

## Suggerimenti per gli utenti di Neovide

Per usare LunarVim con [Neovide](https://github.com/neovide/neovide) devi aggiungere la riga seguente al tuo file `config.lua`:

```lua
vim.o.guifont = "Nome del tuo font"
```

Dove `Nome del tuo font` è il nome letterale del font che vuoi usare. Per esempio `"Inconsolata Nerd Font"`.
Avrai anche bisogno di esportare le variabili d'ambiente corrette e chiamare neovide con i parametri corretti. Un modo semplice per ottenere ciò e creare un piccolo script eseguibile, come per esempio `~/.local/bin/lvim-gui`

```bash
#!/bin/sh
# ~/.local/bin/lvim-gui
export LUNARVIM_RUNTIME_DIR="${LUNARVIM_RUNTIME_DIR:-"$HOME/.local/share/lunarvim"}"
export LUNARVIM_CONFIG_DIR="${LUNARVIM_CONFIG_DIR:-"$HOME/.config/lvim"}"
export LUNARVIM_CACHE_DIR="${LUNARVIM_CACHE_DIR:-"$HOME/.cache/lvim"}"

exec neovide -- -u "$LUNARVIM_RUNTIME_DIR/lvim/init.lua" "$@"
```

Poi forniscigli i permessi di esecuzione appropriati

```bash
chmod +x ~/.local/bin/lvim-gui
```

E d'ora in poi potrai lanciare in questo modo:

```bash
lvim-gui
# o con parametri
lvim-gui some-file
```

## Disinstallazione

Puoi rimuovere LunarVim (inclusi i file di configurazione) usando lo script `uninstall` incluso

```bash
bash ~/.local/share/lunarvim/lvim/utils/installer/uninstall.sh
# oppure
bash <(curl -s https://raw.githubusercontent.com/lunarvim/lunarvim/master/utils/installer/uninstall.sh)
```



47 changes: 47 additions & 0 deletions i18n/it/docusaurus-plugin-content-docs/current/03-quick-start.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Quick start

Dopo l'installazione dovresti essere in grado di avviare LunarVim con il comando `lvim`.

## Aggiungere `lvim` a `$PATH`

If your terminal can't find the `lvim` command, [add the installation folder to your path](https://gist.github.com/nex3/c395b2f8fd4b02068be37c961301caa7) or move the lvim command to somewhere in your path. The default install folder is `~/.local/bin`.
Se il tuo terminale non riesce a trovare il comando `lvim`, [aggiungi la cartella di installazione al tuo percorso](https://gist.github.com/nex3/c395b2f8fd4b02068be37c961301caa7) o sposta il comando lvim da qualche parte nel tuo percorso. La cartella di installazione predefinita è `~/.local/bin`.

## Tree-sitter

Per installare il supporto per la colorazione sintattica e treesitter per il tuo linguaggio:

```vim
:TSInstall <TAB>
```

**NOTA:** `<TAB>` indica che dovresti premere il tasto `<TAB>` e scorrere tra le opzioni

Non tutti i linguaggi sono supportati. Per una lista di linguaggi supportati [vedi qui](https://github.com/nvim-treesitter/nvim-treesitter#supported-languages)

## Language Server

Per installare un Language Server per il tuo linguaggio:

```vim
:LspInstall <TAB>
```

A volte il language server per il tuo linguaggio non avrà un nome ovvio. Per esempio, il language server per ruby è solargraph. Metals è il language server per scala, ecc. Per trovare il language server corrispondente per ilo tuo linguaggio [vedi qui](https://github.com/williamboman/nvim-lsp-installer)

## Formattazione e Linting

Formattazione e linting non sono supportati da alcuni LSP.
Dovranno essere installati / configurati separatamente.

Vedi in [linguaggi](./languages/README.md) dove può essere gesito ogni linguaggio con il proprio formattatore e linting.

## Nerd Fonts

È consigliato un [nerd font](https://www.nerdfonts.com/). Altrimenti alcuni simboli non verranno mostrati correttamente. Per ulteriori informazioni visita la [sezione di configurazione](./configuration/04-nerd-fonts.md).

## Passaggi successivi

- Impara come [configurare LunarVim](./configuration/README.md)
- Informati su i [plugin installati](./plugins/README.md)
- Impara come configurare LunarVim per il tuo [linguaggio](./languages/README.md)
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"position": 6
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Conosci il team

Christian Chiarulli

[Abouzar Parvan](https://github.com/abzcoding/)

[Nelson Jovel](https://github.com/rebuilt)

[Sngmin Chae](https://github.com/chaeing)

[Luc Sinet](https://github.com/Tastyep)

(altri sviluppatore per favore fate una pr e aggiungete il vostro nome dove volete)
11 changes: 11 additions & 0 deletions i18n/it/docusaurus-plugin-content-docs/current/community/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Links

- 🔌 Ask questions and get support on [Discord](https://discord.gg/Xb9B4Ny)
- 📹 Follow me on [YouTube](https://www.youtube.com/channel/UCS97tchJDq17Qms3cux8wcA)
- 📺 I'd rather you join me on [Odysee](https://odysee.com/@chrisatmachine:f)
- 🐦 Connect on [Twitter](https://twitter.com/chrisatmachine)
- 🎙️ You can also find us on [Matrix](https://matrix.to/#/+atmachine:matrix.org)
- 💳 Support on [Patreon](https://www.patreon.com/chrisatmachine)
- 🪙 Stake DEV token with LunarVim on [stakes.social](https://stakes.social/0xe014A52354136B678ff5030397224179bD0F9657)
- ❤️ Sponsor me [sponsor page](https://github.com/sponsors/ChristianChiarulli)
- 🌑 Share your LunarVim config [here](https://github.com/LunarVim/LunarVimCommunity)
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"label": "Community",
"position": 9
}
62 changes: 62 additions & 0 deletions i18n/it/docusaurus-plugin-content-docs/current/community/faq.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
---
sidebar: auto
---

# FAQ

## How do I [..] ?

### How do I add my own keybindings?

- View all defaults by pressing `<leader>Lk`
- change the leader key

```lua
lvim.leader = "space"
```

- Add your own binding

```lua
-- save the buffer
lvim.keys.normal_mode["<C-s>"] = ":w<cr>"
-- move the cursor without leaving insert mode
lvim.keys.insert_mode["<A-h>"] = "<Left>"
lvim.keys.insert_mode["<A-l>"] = "<Right>"
```

- Remove or un-map a default binding

```lua
-- disable completely
lvim.keys.normal_mode["<C-Up>"] = ""
-- define a new behavior
lvim.keys.normal_mode["<C-q>"] = ":q<cr>"
```

- You can also use the NeoVim API directly using [nvim_set_keymap](<https://neovim.io/doc/user/api.html#nvim_set_keymap()>)

```lua
vim.api.nvim_set_keymap("i", "<C-p>", "<cmd>Telescope find_files<cr>", { noremap = true, silent = true, expr = true })
```

- Or you can use the native vim way for those tricky bindings that you are not sure how to translate just yet

```lua
-- Search and replace word under cursor using <F2>
vim.cmd [[ nnoremap <F2> :%s/<c-r><c-w>/<c-r><c-w>/gc<c-f>$F/i ]]
```

## What is `null-ls` and why do you use it?

For C/C++ we have the `clangd` by `llvm` which can also use its siblings' abilities `clang-tidy` and `clang-format` to support additional linting and formatting. But something like `pyright` doesn't support formatting, so we use `null-ls` to register `black` and `flake8` for example, as a "fake" language server.

Since it's not using a separate binary it's called `null-ls` or _null language server_.

## Where can I find some example configs?

If you want ideas for configuring LunarVim you can look at these repositories.

- Chris - [https://github.com/ChristianChiarulli/lvim](https://github.com/ChristianChiarulli/lvim)
- Abouzar -[ https://github.com/abzcoding/lvim ](https://github.com/abzcoding/lvim)
- Nelson -[ https://github.com/rebuilt/lvim ](https://github.com/rebuilt/lvim)
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# General Settings

To set options use

```lua
vim.opt.{option}
```

## Example options

```lua
vim.opt.backup = false -- creates a backup file
vim.opt.clipboard = "unnamedplus" -- allows neovim to access the system clipboard
vim.opt.cmdheight = 2 -- more space in the neovim command line for displaying messages
vim.opt.colorcolumn = "99999" -- fixes indentline for now
vim.opt.completeopt = { "menuone", "noselect" }
vim.opt.conceallevel = 0 -- so that `` is visible in markdown files
vim.opt.fileencoding = "utf-8" -- the encoding written to a file
vim.opt.foldmethod = "manual" -- folding set to "expr" for treesitter based folding
vim.opt.foldexpr = "" -- set to "nvim_treesitter#foldexpr()" for treesitter based folding
vim.opt.guifont = "monospace:h17" -- the font used in graphical neovim applications
vim.opt.hidden = true -- required to keep multiple buffers and open multiple buffers
vim.opt.hlsearch = true -- highlight all matches on previous search pattern
vim.opt.ignorecase = true -- ignore case in search patterns
vim.opt.mouse = "a" -- allow the mouse to be used in neovim
vim.opt.pumheight = 10 -- pop up menu height
vim.opt.showmode = false -- we don't need to see things like -- INSERT -- anymore
vim.opt.showtabline = 2 -- always show tabs
vim.opt.smartcase = true -- smart case
vim.opt.smartindent = true -- make indenting smarter again
vim.opt.splitbelow = true -- force all horizontal splits to go below current window
vim.opt.splitright = true -- force all vertical splits to go to the right of current window
vim.opt.swapfile = false -- creates a swapfile
vim.opt.termguicolors = true -- set term gui colors (most terminals support this)
vim.opt.timeoutlen = 100 -- time to wait for a mapped sequence to complete (in milliseconds)
vim.opt.title = true -- set the title of window to the value of the titlestring
vim.opt.titlestring = "%<%F%=%l/%L - nvim" -- what the title of the window will be set to
vim.opt.undodir = vim.fn.stdpath "cache" .. "/undo"
vim.opt.undofile = true -- enable persistent undo
vim.opt.updatetime = 300 -- faster completion
vim.opt.writebackup = false -- if a file is being edited by another program (or was written to file while editing with another program) it is not allowed to be edited
vim.opt.expandtab = true -- convert tabs to spaces
vim.opt.shiftwidth = 2 -- the number of spaces inserted for each indentation
vim.opt.tabstop = 2 -- insert 2 spaces for a tab
vim.opt.cursorline = true -- highlight the current line
vim.opt.number = true -- set numbered lines
vim.opt.relativenumber = false -- set relative numbered lines
vim.opt.numberwidth = 4 -- set number column width to 2 {default 4}
vim.opt.signcolumn = "yes" -- always show the sign column otherwise it would shift the text each time
vim.opt.wrap = false -- display lines as one long line
vim.opt.spell = false
vim.opt.spelllang = "en"
vim.opt.scrolloff = 8 -- is one of my fav
vim.opt.sidescrolloff = 8
```

Loading