unix-config/.config/nvim/README.md
2024-08-17 09:40:38 +10:00

33 lines
702 B
Markdown

# Neovim Configuration
Running neovim with packer for plugins and lsp stuff.
`init.lua` is the entry point for neovim.
`plugin/*.lua` run on startup.
## Plugins & LSP
```sh
:PackerInstall
:PackerUpdate
:Mason -> U # Update all LSP servers
```
Mason should auto-install LSP servers. However, the following is what should be installed:
- `prettier`
- `lua-language-server`
- `luaformatter`
- `eslint_d`
- `typescript-language-server`
- `stylelint-lsp`
`prettierd` and `eslintd` will need to be installed manually via pnpm as a global package.
## Custom key binds
- `<space>f` to toggle NerdTREE
- `?` to view code action items
- `>` to go to next diagnostic
- `<` to go to previous diagnostic