diff --git a/configfile/nvim/lua/custom/chadrc.lua b/configfile/nvim/lua/custom/chadrc.lua index 1cf6af9..0b3cab9 100644 --- a/configfile/nvim/lua/custom/chadrc.lua +++ b/configfile/nvim/lua/custom/chadrc.lua @@ -12,7 +12,7 @@ M.options = { } M.ui = { - theme = "tokyonight" + theme = "tokyonight" } -- NvChad included plugin options & overrides diff --git a/configfile/nvim/lua/init.lua b/configfile/nvim/lua/init.lua new file mode 100644 index 0000000..51abb04 --- /dev/null +++ b/configfile/nvim/lua/init.lua @@ -0,0 +1,13 @@ +-- 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", "cc", ":Telescope ") +--map("n", "q", ":q ") + +vim.cmd [[ au BufReadPost * if expand('%:p') !~# '\m/\.git/' && line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif ]] +-- 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