diff options
author | Toby Vincent <tobyv13@gmail.com> | 2022-03-17 13:09:00 -0500 |
---|---|---|
committer | Toby Vincent <tobyv13@gmail.com> | 2022-03-17 13:09:00 -0500 |
commit | ea8f210bd97b48d2ffd664f966872a8e51f1e306 (patch) | |
tree | 18f33ee3d82cc7399e367f59a64d4067661cac35 /NvChad/lua/core/autocmds.lua | |
parent | a3d6669ce88b8690e53429773d7e30056d86e135 (diff) |
feat: initial working nvim
Diffstat (limited to 'NvChad/lua/core/autocmds.lua')
-rw-r--r-- | NvChad/lua/core/autocmds.lua | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/NvChad/lua/core/autocmds.lua b/NvChad/lua/core/autocmds.lua deleted file mode 100644 index 362f0d3..0000000 --- a/NvChad/lua/core/autocmds.lua +++ /dev/null @@ -1,20 +0,0 @@ -local settings=require("core.utils").load_config().options.nvChad --- 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 -if not settings.terminal_numbers then - vim.cmd [[ au TermOpen term://* setlocal nonumber norelativenumber | setfiletype terminal ]] -end - --- Don't show status line on certain windows -vim.cmd [[ autocmd BufEnter,BufRead,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 ]] |