Neolazy is based on lazy.nvim, a robust base configuration for neovim by folke written in Lua.
- Lazy package manager
- LSP && autocomplete ready
- Kanagawa and default lazy themes
- Fuzzy search with telescope
- Treesitter Parser
- Integrated terminal ToggleTerm
# required
# backup old config
mv ~/.config/nvim{,.bak}
# optional but recommended
mv ~/.local/share/nvim{,.bak}
mv ~/.local/state/nvim{,.bak}
mv ~/.cache/nvim{,.bak}
git clone https://github.com/HatemTemimi/Neolazy.nvim ~/.config/nvim
nvim
after running the config, you first have to install the packages which are managed by lazy
:Lazy sync
Neolazy's config is easy, you will only deal with a file per topic, which are three: keymaps, commands and plugins, we will go through each topic seperatly so you get to know the files concerned for each one:
~/.config/nvim/lua/init.lua
the root of the project, bootstraps the config
~/.config/nvim/lua/config/lazy.lua
base lazy.nvim config is contained here, you can remove base lazy plugins from here
~/.config/nvim/lua/plugins/index.lua
this is your playground where you can add your own plugins and alter the behavior of present plugins
~/.config/nvim/lua/config/autocmds.lua
this file handles commands that are executed when neovim is just launched.
vim.cmd("colorscheme kanagawa") --> this line sets your current theme to kanagawa
vim.cmd("set relativenumber") --> This line activates the relative line numbers in the buffer. Relative line numbers show the relative line distances between the current line and other lines in the file.
vim.cmd("set number") --> This line activates absolute line numbers in the buffer.
Absolute line numbers show the actual line numbers of each line in the file.
You can of course add your own commands.
~/.config/nvim/lua/config/keymaps.lua
this file handles your remaps config
//leader config
vim.g.mapleader = " "
vim.g.maplocalleader = " "
allows you to copy and paste from outside
vim.keymap.set({ "n", "v" }, "<C-x>", [["+x]])
vim.keymap.set({ "n", "v" }, "<C-y>", [["+y]])
vim.keymap.set({ "n", "i" }, "<C-p>", [["+gP]])