Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/brunokrugel/dotfiles

My dotfiles to use with NvChad
https://github.com/brunokrugel/dotfiles

dotfiles editor foss ide lua neovim neovim-config neovim-dotfiles neovim-setup nvchad nvim rice ricing vim vs vscode

Last synced: 2 months ago
JSON representation

My dotfiles to use with NvChad

Awesome Lists containing this project

README

        

Nvim(Chad) configuration


Powered by NvChad v2.5



Last commit


Stars


Issues


Repo Size

![prv-min](./img/prv.png)






## Introduction

I do not own anything related to NvChad, this is only the configs that I use with it.

I have been a VSCode user for years and I am slowly moving forward to `NVIM`, so this is my config that mimics `VSCode` key binds and UI, with a goal of removing plugins as I am getting used to it and learning more about `NVIM`.

## Installation guide

1. Same as [NvChad](https://nvchad.com/docs/quickstart/install)
2. I am using `Hack Nerd Font`
3. My terminal is `WezTerm`

## Help

For questions feel free to open an issue or you can find me in the [NvChad discord](https://discord.com/invite/gADmkJb9Fb) server.

## Configured environments

- [x] Lua
- [x] Go ([go.nvim](https://github.com/ray-x/go.nvim))
- [x] Web development (JS, TS, HTML, CSS, React, Astro)
- [x] Markdown

TreeSitter is enabled and will automatically install parsers for you.

## CMP fully integrated with AI completions

![cmp](./img/cmp.png)

Cmp has some custom configs for performance, and it will open automatically.

You can disable cmp auto-complete with cmd `CmpToggle`.

To trigger it, press ``, you can navigate between the options with `` and `` and select with ``.

If Cmp is visible, you can use `` to close it without leaving `Insert` mode.

If the copilot suggestion is active, you can use `` to select the copilot option.

## Code foldable in a VSCode style

![fold](./img/fold.png)

_With [UFO](https://github.com/kevinhwang91/nvim-ufo)_

## Diagnostics in a VSCode style

### Diagnostics Tab

![diagnostics](./img/diagnostics.png)

_With [Trouble](https://github.com/folke/trouble.nvim)_

### Diagnostics with LSP Lines

![scrollbar](./img/lsp.png)

_With [lsp-lines](https://github.com/ErichDonGubler/lsp_lines.nvim)_

## Word highlight

![word](./img/word.png)

_With [Illuminate](https://github.com/RRethy/vim-illuminate)_

## TODO Tracking

![todo](./img/todo.png)

_With [Todo-comments](https://github.com/folke/todo-comments.nvim)_

## Search and replace

### Local Search

![search](./img/search.png)

_With [SearchBox](https://github.com/VonHeikemen/searchbox.nvim)_

### Global Search and Replace

![rename](./img/replace.png)

_With [Grug Far](https://github.com/MagicDuck/grug-far.nvim)_

### Local rename

![muren](./img/muren.png)

_With [Muren](https://github.com/BrunoKrugel/muren.nvim)_

## Custom Statusline tweaks

1. It will show when it's recording a macro.
2. It will show a custom icon when the file is hooked by Harpoon.
3. It will show colored icons for the file icon.
4. It will show a Git icon with the status of the copilot

## Custom Tabufline icons

![status](./img/tabufline.png)

From left to right:

1. GitHub UI (on click will open `LazyGit` window)
2. Split window button (on click will split the current window vertically)

## References

![Reference](./img/reference.png)

_With [Glance](https://github.com/DNLHC/glance.nvim)_

## Keybinds
All the keybindings are available in the `mappings.lua` file, and also described in the NVCheatSheet, you can access it with `ch`.
Common Text key binds are also available:

- Ctrl + A Select All
- Ctrl + X Cut
- Ctrl + C Copy
- Ctrl + V Paste
- Ctrl + Z Undo

## Formatting

I do not like the format on save, so my config is set to format on `fm` only, but you can change it to whatever you want, to do it, just uncomment the autocmd in the `autocmd.lua` file.

For `.go` files, you can use `fi` to complete imports.

## Improved GoToDefinition

I am using universal CTAGS to have a better GoToDefinition, the tags are generated automatically with [guttentags](https://github.com/ludovicchabant/vim-gutentags).
Keybind to use is ``.

## Github

![LazyGit](./img/lazygit.png)

_With [LazyGit](https://github.com/kdheepak/lazygit.nvim)_

## Other plugins

- Auto save with [auto-save](https://github.com/Pocco81/auto-save.nvim)
- UI overhaul with [Noice](https://github.com/folke/noice.nvim)
- UI Improvement with [Telescope-ui-select](https://github.com/nvim-telescope/telescope-ui-select.nvim)
- Arguments highlights with [hlargs](https://github.com/m-demare/hlargs.nvim)
- Quick file navigation with [Harpoon](https://github.com/ThePrimeagen/harpoon)