clean packer config | Breaking change
This commit is contained in:
parent
e8b31c9308
commit
64c32d2e5e
7 changed files with 89 additions and 104 deletions
|
@ -9,4 +9,15 @@ M.ui = {
|
|||
theme = "onedark",
|
||||
}
|
||||
|
||||
-- Install plugins
|
||||
local userPlugins = require "custom.plugins" -- path to table
|
||||
|
||||
M.plugins = {
|
||||
install = userPlugins,
|
||||
}
|
||||
|
||||
-- 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
|
||||
|
||||
return M
|
||||
|
|
|
@ -1,30 +1,11 @@
|
|||
-- 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!!
|
||||
-- This is an example init file in /lua/custom/
|
||||
-- this init.lua can load stuffs etc too so treat it like your ~/.config/nvim/
|
||||
|
||||
-- MAPPINGS
|
||||
local map = require("core.utils").map
|
||||
|
||||
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
|
||||
local customPlugins = require "core.customPlugins"
|
||||
|
||||
customPlugins.add(function(use)
|
||||
use {
|
||||
"max397574/better-escape.nvim",
|
||||
event = "InsertEnter",
|
||||
}
|
||||
|
||||
use {
|
||||
"user or orgname/reponame",
|
||||
--further packer options
|
||||
}
|
||||
end)
|
||||
|
||||
-- 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
|
||||
-- NOTE: the 4th argument in the map function is be a table i.e options but its most likely un-needed so dont worry about it
|
||||
|
|
7
examples/plugins.lua
Normal file
7
examples/plugins.lua
Normal file
|
@ -0,0 +1,7 @@
|
|||
-- Example plugins file!
|
||||
-- (suggestion) -> lua/custom/plugins/init.lua or anywhere in custom dir
|
||||
|
||||
return {
|
||||
{ "elkowar/yuck.vim", ft = "yuck" },
|
||||
{ "ellisonleao/glow.nvim", cmd = "Glow" },
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue