Add: nvim init
This commit is contained in:
parent
f2e8d831ab
commit
2866981858
2 changed files with 14 additions and 1 deletions
13
configfile/nvim/lua/init.lua
Normal file
13
configfile/nvim/lua/init.lua
Normal 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
|
Loading…
Reference in a new issue