Minha configuração do Neovim usando lazy.nvim como gerenciador de plugins.
| Plugin | Descrição |
|---|---|
| folke/tokyonight.nvim | Colorscheme |
| nvim-treesitter/nvim-treesitter | Syntax highlight |
| neovim/nvim-lspconfig | Configuração de LSP |
| williamboman/mason.nvim | Gerenciador de LSPs |
| williamboman/mason-lspconfig.nvim | Integração Mason + LSP |
| hrsh7th/nvim-cmp | Autocomplete |
| nvim-tree/nvim-tree.lua | Árvore de arquivos |
| nvim-telescope/telescope.nvim | Busca fuzzy |
| ThePrimeagen/git-worktree.nvim | Git worktrees |
| lewis6991/gitsigns.nvim | Sinais git no gutter |
| windwp/nvim-autopairs | Fechamento automático de pares |
| Atalho | Modo | Ação |
|---|---|---|
<leader>e |
Normal | Abrir/fechar árvore de arquivos |
<leader>ff |
Normal | Buscar arquivos (Telescope) |
<leader>fg |
Normal | Buscar texto no projeto (live grep) |
<C-p> |
Normal | Buscar arquivos (Telescope) |
<leader>gw |
Normal | Listar git worktrees |
<leader>gn |
Normal | Criar git worktree |
gd |
Normal | Ir para definição (LSP) |
gr |
Normal | Ver referências (LSP) |
K |
Normal | Ver documentação (LSP hover) |
<leader>z |
Normal | Toggle fold |
<leader>=Space
# Neovim 0.11+
sudo apt install neovim # Ubuntu/Debian
sudo pacman -S neovim # Arch
# Git
sudo apt install git # Ubuntu/Debian
sudo pacman -S git # Arch
# Compilador C (para nvim-treesitter)
sudo apt install gcc # Ubuntu/Debian
sudo pacman -S gcc # Arch
# ripgrep (para Telescope live_grep)
sudo apt install ripgrep # Ubuntu/Debian
sudo pacman -S ripgrep # Arch
# Go (para gopls)
sudo apt install golang # Ubuntu/Debian
sudo pacman -S go # Arch
:MasonInstall gopls phpactor# Neovim 0.11+
winget install Neovim.Neovim
# Git
winget install Git.Git
# Compilador C (para nvim-treesitter) — escolha um dos dois
winget install LLVM.LLVM # Opção 1: LLVM (recomendado)
winget install MinGW.MinGW # Opção 2: MinGW
# ripgrep (para Telescope live_grep)
winget install BurntSushi.ripgrep.MSVC
# Go (para gopls)
winget install GoLang.Go
:MasonInstall gopls
npm install -g intelephense
⚠️ Windows: Após instalar o compilador C, adicione-o ao PATH e reinicie o terminal.
Adicionar init.lua em :
- .config/nvim
Adicionar init.lua em :
- LOCALAPPDATA\nvim
- Abra o Neovim:
nvim-
O lazy.nvim irá instalar todos os plugins automaticamente. Aguarde a conclusão.
-
Feche e reabra o Neovim, depois execute:
:Lazy sync
- Os parsers do Treesitter serão instalados automaticamente via
auto_install = true. Para instalar manualmente:
:TSInstall lua vim vimdoc go
nvim/
└── init.lua # Configuração principal