Add: nvim init

This commit is contained in:
nold 2022-02-15 21:35:26 +01:00
parent f2e8d831ab
commit 2866981858
2 changed files with 14 additions and 1 deletions

View file

@ -12,7 +12,7 @@ M.options = {
}
M.ui = {
theme = "tokyonight"
theme = "tokyonight"
}
-- NvChad included plugin options & overrides

View file

@ -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", "<leader>cc", ":Telescope <CR>")
--map("n", "<leader>q", ":q <CR>")
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