https://github.com/ppcamp/nvim
A simple nvim setup for my use
https://github.com/ppcamp/nvim
Last synced: about 1 year ago
JSON representation
A simple nvim setup for my use
- Host: GitHub
- URL: https://github.com/ppcamp/nvim
- Owner: ppcamp
- License: mit
- Created: 2024-09-15T14:54:36.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-05-17T15:09:21.000Z (about 1 year ago)
- Last Synced: 2025-05-17T15:36:36.600Z (about 1 year ago)
- Language: Lua
- Size: 130 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nvim
A simple nvim setup for my use
> Based on [kickstart-modular-nvim]
To enable numbering, for vim only
file: `~/.vimrc`
```.vimrc
set number " numbering
set sw=4 " used for indentation operations
set ts=4 " how many spaces a tab character represents
set ignorecase
set expandtab
" Use ripgrep (rg) for :grep
set grepprg=rg\ --vimgrep\ --no-heading\ --smart-case
" Set the format for parsing grep output (%file %line %column %match)
set grepformat=%f:%l:%c:%m
```
As a suggestion, use a [nerdfont], which contains icons for your files, and after install it,
set it as font that should be used for your terminal emulator, after that, go to `lua/config/options.lua`
and enabled it.
1. Install neovim https://github.com/neovim/neovim/blob/master/INSTALL.md
```bash
curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim-linux64.tar.gz
sudo rm -rf /opt/nvim
sudo tar -C /opt -xzf nvim-linux64.tar.gz
```
2. Clone this repo
```bash
git clone https://github.com/ppcamp/nvim --recursive ~/.config/nvim
# or, alternativaly
git clone git@github.com:ppcamp/nvim.git ~/.config/nvim
```
3. Run `nvim .`
[kickstart-modular-nvim]: https://github.com/dam9000/kickstart-modular.nvim
[nerdfont]: https://www.nerdfonts.com/font-downloads