Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/utilyre/uvim

My "minimal" Neovim config
https://github.com/utilyre/uvim

config lua neovim nvim nvim-config

Last synced: 12 days ago
JSON representation

My "minimal" Neovim config

Awesome Lists containing this project

README

        

# uvim

This is my **"minimal"** _Neovim config_ that I put pride on.

## ⚡ Requirements

- 🍺 Get yourself a fresh install of [Neovim][neovim].

- 🚀 Use a [Nerd Font][nerdfonts] within your terminal.

- 🔍 Install [`fd-find`][fd-find] and [`ripgrep`][ripgrep] through your
favorite package manager.

- 🐙 Setup [`git`][git-scm] if you haven't already.

## 📦 Installation

1. Run the following and append it to your shell startup script

```bash
export NVIM_APPNAME=uvim
```

2. Clone this repository

```bash
git clone https://github.com/utilyre/uvim.git ~/.config/$NVIM_APPNAME
```

3. Spin up Neovim in headless mode

```bash
nvim --headless +q
```

## ☕ Tips

- Set `NVIM_DEV` environment variable to modify where [lazy.nvim][lazy.nvim]
should look for `dev = true` plugins.

- Run `:TSInstall [language]` to install the [tree-sitter][tree-sitter] parser
for the given language.

- See `:help lspconfig-all` to get an understanding of how you would setup a
language server.

> plugin/rust_analyzer.lua

```lua
--$ rustup component add rust-analyzer
vim.api.nvim_create_autocmd("FileType", {
once = true,
pattern = "rust",
callback = function(args)
vim.schedule(vim.cmd.edit)
require("lspconfig").rust_analyzer.setup({
cmd = { "rustup", "run", "stable", "rust-analyzer" },
})
end,
})
```

[neovim]: https://neovim.io
[nerdfonts]: https://www.nerdfonts.com
[fd-find]: https://crates.io/crates/fd-find
[ripgrep]: https://crates.io/crates/ripgrep
[git-scm]: https://git-scm.com
[lazy.nvim]: https://github.com/folke/lazy.nvim
[tree-sitter]: https://tree-sitter.github.io