init.lua
init.lua#
Overview#
Note: you need to change the theme if you don’t have pywal installed on your system.
run:help colorschemein nvim.
Start with the Prerequisites to install dependencies such as a LaTeX-Compiler aswell as a pdf-reader.
The init.lua is sourcing the four config files below:
- Options
Defines the basic behaviour and visual appearance of the editor
(line numbers, indentation depth, clipboard behaviour and global
display settings). - Lazy
Specify which plugins are installed, how they are loaded, and what settings they require on startup. - Keymaps
Define personal keyboard shortcuts in here. - Autocmds
Automatic event-driven actions.
-- Set leader keys first (before lazy.nvim)
vim.g.mapleader = " "
vim.g.maplocalleader = "\\"
-- Sourcing Config
require("config.options")
require("config.lazy")
require("config.keymaps")
require("config.autocmds")
-- Setting the Theme
vim.api.nvim_create_autocmd("VimEnter", {
callback = function()
require("neopywal").setup()
vim.cmd.colorscheme("neopywal")
end,
})