These are my Neovim configuration files. Feel free to fork this and modify as you need.
All the files are written in lua language.
Before using this Neovim configuration, these dependencies must be installed:
- ripgrep
- fzf - fuzzy finder
- Packer - plugin manager
- NodeJS or nvm to install Node
- Nerd Fonts for the best experience
- Prettierd for formatting
I use the NightFox Theme light theme dayfox
. It looks clean and comfortable for my eyes.
Plugin | Description |
---|---|
cohama/lexima.vim | Auto close parentheses |
VonHeikemen/lsp-zero.nvim | Language Server Protocol (LSP) |
nvim-treesitter/nvim-treesitter | Better syntax highlighting than VSCode |
nvim-lua/plenary.nvim | Required to use Telescope |
nvim-telescope/telescope-fzf-native.nvim | Fuzzy finder extension for Telescope |
nvim-telescope/telescope.nvim | Find & Navigate between the files in the project |
kyazdani42/nvim-web-devicons | Icons pack (require nerd fonts) |
tpope/vim-commentary | Comment code |
editorconfig/editorconfig-vim | Editor Config |
mhartington/formatter.nvim | File Formatter |
airblade/vim-gitgutter | Show git diff (changes) of a file |
stevearc/aerial.nvim | Code outline |
Too lazy to type the whole things to the commands? Don't want to do repeat task?
Then try to use these hotkeys to make your life easier.
Hotkey | What it does | Description |
---|---|---|
, | Don't need to reach that far | |
r | :source % | Reload the config files |
q | :bd | Delete the buffer |
zz | :w | Save file |
zx | :wq | Save file and quit |
e | :PlugInstall | Install Plugins |
o | Enter new line below in normal mode |
|
O | Enter new line above in normal mode |
|
[b | :bprevious | Move to previous buffer |
]b | :bnext | Move to next buffer |
[B | :bfirst | Move to the first buffer |
]B | :blast | Move to the last buffer |
hjkl | Navigate between splits | |
ff | Telescope find_files | Find files in the project |
ff | Telescope find_files | Search text in the project |
fb | Telescope buffers | Find buffers |
fh | Telescope help_tags | Find help tags |
fm | Format | Format the file |
fM | FormatWrite | Format and save the file |
db | dap.toggle_breakpoint | Toggle breakpoint |
dap.continue | Start a new debug session / Continue debug session | |
dap.step_over | Step over in debug session | |
dap.step_into | Step into in debug session | |
dap.step_out | Step out in debug session | |
gcc | vim-commentary default | Comment out a line |
gcc | vim-commentary default | Comment out a target of a motion |
<C-]> | vim.lsp.buf.definition | Jump to definition |
:Explore | Open Netrw | |
a | vim.lsp.buf.code_action | Open quick actions |
gn | vim.diagnostic.goto_next | Go to next diagnostic |
gb | vim.diagnostic.goto_prev | Go to previous diagnostic |
o | AerialToggle! | Toggle code outline |
I am Ngoc Nguyen. I am glad to add another fellow developer to my network. Connect with me here: