Basics Configuration of init.lua file

Basic neovim is good, but you can give it a lot nicer look with proper configuration. You just need to edit your configuration file that I mentioned earlier. For that, go to the configuration file using command:
nvim ~/.config/nvim/init.lua

There, for any specific task or change use the following commands.

  • To add line number : vim.opt.number = true
  • To add relative line number : vim.opt.relativenumber = true
  • To enable syntax : vim.opt.syntax = "on"
  • To enable spell check : vim.opt.spell = true