dotfiles/configfile/nvim/lua/custom/init.lua

15 lines
505 B
Lua
Raw Normal View History

-- AutoCMD:
-- vim.cmd([[
-- stuff
-- stuff
-- ]])
-- Open a file from its last left off position
2023-03-15 12:16:16 +00:00
vim.cmd [[ au BufReadPost * if expand('%:p') !~# '\m/\.git/' && line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif ]]
-- uncomment this if you want to open nvim with a dir
2023-03-15 12:16:16 +00:00
vim.cmd [[ autocmd BufEnter * if &buftype != "terminal" | lcd %:p:h | endif ]]
-- File extension specific tabbing
2023-03-15 12:16:16 +00:00
vim.cmd [[ autocmd Filetype python setlocal expandtab tabstop=4 shiftwidth=4 softtabstop=4 ]]