This repository contains my personal configuration files for Neovim, designed to optimize and enhance the editing experience.
init.lua: Main configuration file that initializes and sets up plugins and custom settings.lua/: Directory containing additional Lua modules used in the configuration.
-
Clone the repository:
git clone [https://github.com/crahantan/nvim-dotfiles.git](https://github.com/crahantan/nvim-dotfiles.git) ~/.config/nvim -
Start Neovim:
Upon opening Neovim, the plugins specified in the configuration will be installed automatically.
The plugins included in this configuration are located in the lua/plugins/ directory. Some of them are:
- nvim-treesitter: Provides advanced syntax highlighting and code parsing improvements.
- nvim-lspconfig: Configuration for language servers in Neovim.
- neotree.nvim: Advanced file explorer.
- mason.nvim: Tool manager for LSP, DAP, and linters.
- lazy.nvim: Modern and efficient package manager for Neovim.
- lualine.nvim: Highly customizable status line.
- cmp-nvim: Advanced auto-completion for Neovim.
- cmp-buffer: Auto-completion source based on the current buffer.
- cmp-path: Auto-completion of file paths.
- cmp-cmdline: Auto-completion in the Neovim command line.
- luasnip: Snippet engine for Neovim.
- comment.nvim: Facilitates adding and removing comments in code.
- pineapple.nvim: Custom plugin to improve productivity in Neovim.
- Leader (
<leader>):vim.g.mapleader = ' '
<leader>w: Save current file (:write)<leader>q: Close Neovim (:quit)<leader>e: Toggle file explorer (:Neotree toggle)<leader>l: Open Lazy (:Lazy)<leader>m: Open Mason (:Mason)<leader>t: Open terminal (:terminal)<leader>h: Reveal in Neotree (:Neotree reveal)<leader>bn: Go to the next buffer (:bnext)<leader>bb: Go to the previous buffer (:bprevious)<leader>bd: Close buffer (:bd)<leader>p: Execute Pineapple (:Pineapple)
To adjust this configuration to your needs:
- Modify
init.lua: Adjust parameters and options according to your preferences. - Edit files in
lua/: Customize specific modules for additional functionalities.