mirror of
https://github.com/NvChad/NvChad.git
synced 2024-11-14 18:12:52 +00:00
7d5a15f7ce
* fix: Fix stylua CI formatter | add charity link Update format.yml * chore: format with stylua Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
18 lines
928 B
Lua
18 lines
928 B
Lua
-- uncomment this if you want to open nvim with a dir
|
|
-- vim.cmd [[ autocmd BufEnter * if &buftype != "terminal" | lcd %:p:h | endif ]]
|
|
|
|
-- Use relative & absolute line numbers in 'n' & 'i' modes respectively
|
|
-- vim.cmd[[ au InsertEnter * set norelativenumber ]]
|
|
-- vim.cmd[[ au InsertLeave * set relativenumber ]]
|
|
|
|
-- Don't show any numbers inside terminals
|
|
vim.cmd [[ au TermOpen term://* setlocal nonumber norelativenumber | setfiletype terminal ]]
|
|
|
|
-- Don't show status line on certain windows
|
|
vim.cmd [[ autocmd BufEnter,BufWinEnter,FileType,WinEnter * lua require("core.utils").hide_statusline() ]]
|
|
|
|
-- Open a file from its last left off position
|
|
-- vim.cmd [[ au BufReadPost * if expand('%:p') !~# '\m/\.git/' && line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif ]]
|
|
-- File extension specific tabbing
|
|
-- vim.cmd [[ autocmd Filetype python setlocal expandtab tabstop=4 shiftwidth=4 softtabstop=4 ]]
|