nvchad/examples/init.lua

31 lines
917 B
Lua
Raw Normal View History

2022-01-07 09:28:05 -05:00
-- This is an example init file , its supposed to be placed in /lua/custom/
-- This is where your custom modules and plugins go.
-- Please check NvChad docs if you're totally new to nvchad + dont know lua!!
-- MAPPINGS
2022-01-07 09:28:05 -05:00
local map = require("core.utils").map
2022-01-07 09:28:05 -05:00
map("n", "<leader>cc", ":Telescope <CR>")
map("n", "<leader>q", ":q <CR>")
-- NOTE: the 4th argument in the map function can be a table i.e options but its most likely un-needed so dont worry about it
-- Install plugins
2022-01-07 09:28:05 -05:00
local customPlugins = require "core.customPlugins"
2022-01-07 09:28:05 -05:00
customPlugins.add(function(use)
use {
"max397574/better-escape.nvim",
event = "InsertEnter",
}
use {
"user or orgname/reponame",
--further packer options
}
end)
2022-01-07 09:28:05 -05:00
-- NOTE: we heavily suggest using Packer's lazy loading (with the 'event','cmd' fields)
-- see: https://github.com/wbthomason/packer.nvim
-- https://nvchad.github.io/config/walkthrough